| # 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_tool.gni") | |
| import("../../build/ffx_plugin.gni") | |
| ffx_plugin("ffx_log") { | |
| sdk_category = "not-yet-specified" | |
| version = "0.1.0" | |
| edition = "2024" | |
| with_unit_tests = true | |
| args_with_unit_tests = false | |
| args_deps = [ "//src/diagnostics/lib/log-command:log-command_fdomain" ] | |
| config_data = [ "data/config.json" ] | |
| deps = [ | |
| "command_output", | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain", | |
| "//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust_fdomain", | |
| "//sdk/fidl/fuchsia.diagnostics.host:fuchsia.diagnostics.host_rust_fdomain", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust_fdomain", | |
| "//src/developer/ffx/config:lib", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/rcs:lib", | |
| "//src/developer/ffx/lib/symbol-index", | |
| "//src/developer/ffx/lib/target/connector:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/diagnostics/lib/log-command:log-command_fdomain", | |
| "//src/lib/agents", | |
| "//src/lib/diagnostics/data/rust", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:derivative", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:pin-project", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:tokio", | |
| ] | |
| args_sources = [ "src/args.rs" ] | |
| sources = [ | |
| "src/condition_variable.rs", | |
| "src/error.rs", | |
| "src/lib.rs", | |
| "src/mutex.rs", | |
| "src/testing_utils.rs", | |
| "src/transactional_symbolizer.rs", | |
| ] | |
| test_deps = [ | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust", | |
| "//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust", | |
| "//sdk/fidl/fuchsia.diagnostics.host:fuchsia.diagnostics.host_rust", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust", | |
| "//src/developer/ffx/lib/target:lib", | |
| "//src/developer/ffx/lib/target/behavior:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/diagnostics/lib/log-command:log-command_fdomain", | |
| "//src/lib/diagnostics/log/encoding/rust", | |
| "//src/lib/diagnostics/selectors", | |
| "//src/lib/fdomain/local", | |
| "//src/lib/fuchsia", | |
| "//src/lib/fuchsia-sync", | |
| "//src/sys/lib/moniker", | |
| "//third_party/rust_crates:assert_matches", | |
| "//third_party/rust_crates:chrono", | |
| "//third_party/rust_crates:pin-project", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:tokio", | |
| "//third_party/rust_crates:zerocopy", | |
| ] | |
| } | |
| ffx_tool("ffx_log_tool") { | |
| # Needed for Honeydew's SDK inclusion | |
| # | |
| # TODO(b/330934833): Remove when IDK allows for `testonly` targets in dep | |
| # tree or when we can separate the concept of data_dep from host_test_data. | |
| testonly = false | |
| edition = "2024" | |
| output_name = "ffx-log" | |
| deps = [ | |
| ":ffx_log", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/lib/fuchsia-async", | |
| ] | |
| sources = [ "src/main.rs" ] | |
| sdk_target_name = "sdk" | |
| sdk_category = "partner" | |
| data_deps = [ "//tools/symbolizer:symbolizer_host_tool" ] | |
| } | |
| group("log") { | |
| public_deps = [ | |
| ":ffx_log_tool", | |
| ":ffx_log_tool_host_tool", | |
| ] | |
| } | |
| group("bin") { | |
| public_deps = [ ":ffx_log_tool_versioned" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":ffx_log_tests($host_toolchain)" ] | |
| } |