| # 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("//build/testing/host_test.gni") |
| import("//build/testing/host_test_data.gni") |
| import("//src/developer/ffx/build/ffx_plugin.gni") |
| |
| ffx_plugin("ffx_doctor") { |
| sdk_category = "not-yet-specified" |
| version = "0.1.0" |
| edition = "2021" |
| with_unit_tests = true |
| deps = [ |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust", |
| "//src/connectivity/overnet/lib/core", |
| "//src/developer/ffx/command:lib", |
| "//src/developer/ffx/config:lib", |
| "//src/developer/ffx/daemon:lib", |
| "//src/developer/ffx/fidl:fuchsia.developer.ffx_rust", |
| "//src/developer/ffx/lib/compat_info:lib", |
| "//src/developer/ffx/lib/diagnostics:lib", |
| "//src/developer/ffx/lib/diagnostics/checks:lib", |
| "//src/developer/ffx/lib/discovery:lib", |
| "//src/developer/ffx/lib/doctor_utils:lib", |
| "//src/developer/ffx/lib/errors:lib", |
| "//src/developer/ffx/lib/fho:lib", |
| "//src/developer/ffx/lib/ssh:lib", |
| "//src/developer/ffx/lib/target:lib", |
| "//src/developer/ffx/lib/timeout:lib", |
| "//src/developer/ffx/lib/version:lib", |
| "//src/developer/ffx/lib/writer:lib", |
| "//src/developer/ffx/plugins/target/show:ffx_target_show", |
| "//src/developer/ffx/plugins/target/show:ffx_target_show_args", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-lockfile:lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-lock", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:nix", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:termion", |
| "//third_party/rust_crates:zip", |
| ] |
| test_deps = [ |
| "//src/developer/ffx:test_data", |
| "//src/developer/ffx/plugins/doctor/test_utils:lib", |
| "//src/lib/fidl/rust/fidl_test_util", |
| "//src/lib/fuchsia", |
| "//third_party/rust_crates:tempfile", |
| ] |
| |
| args_sources = [ "src/args.rs" ] |
| args_deps = [ |
| "//src/developer/ffx/core:lib", |
| "//third_party/rust_crates:argh", |
| ] |
| |
| sources = [ |
| "src/doctor_ledger.rs", |
| "src/gcheck.rs", |
| "src/ledger_view.rs", |
| "src/lib.rs", |
| "src/single_target_diagnostics.rs", |
| ] |
| } |