blob: b68df5add685c3897ad02b59ff074addd742b7da [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//src/developer/ffx/build/ffx_plugin.gni")
import("//src/developer/ffx/build/ffx_tool.gni")
ffx_plugin("ffx_trace") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
args_with_unit_tests = true
config_data = [ "data/config.json" ]
args_sources = [ "src/args.rs" ]
sources = [ "src/lib.rs" ]
deps = [
"//sdk/fidl/fuchsia.tracing:fuchsia.tracing_rust",
"//sdk/fidl/fuchsia.tracing.controller:fuchsia.tracing.controller_rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target:lib",
"//src/lib/fidl/rust/fidl",
"//src/lib/flyweights",
"//src/lib/fuchsia-async",
"//src/performance/lib/fxt/rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:term_grid",
"//third_party/rust_crates:termion",
]
args_deps = [
"//sdk/fidl/fuchsia.tracing:fuchsia.tracing_rust",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
]
test_deps = [
"//src/developer/ffx/lib/writer:lib",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:tempfile",
]
}
ffx_tool("ffx_trace_tool") {
edition = "2021"
output_name = "ffx-trace"
deps = [
":ffx_trace",
"//src/developer/ffx/lib/fho:lib",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
sdk_target_name = "sdk"
sdk_category = "partner"
}
group("trace") {
public_deps = [
":ffx_trace_tool",
":ffx_trace_tool_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_trace_tool_versioned" ]
}
group("tests") {
testonly = true
deps = [ ":ffx_trace_tests($host_toolchain)" ]
}