| # Copyright 2019 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/host.gni") |
| import("./build/ffx.gni") |
| |
| group("development-bridge") { |
| testonly = true |
| |
| public_deps = [ |
| ":ffx", |
| ":tests", |
| ] |
| } |
| |
| if (host_toolchain == current_toolchain) { |
| ffx("ffx") { |
| version = "0.1.0" |
| edition = "2018" |
| with_unit_tests = true |
| |
| plugin_deps = [ |
| "//src/developer/development-bridge/run-component:ffx_run_component", |
| "//src/developer/development-bridge/test:ffx_test", |
| ] |
| |
| deps = [ |
| "config:lib", |
| "core:lib", |
| "daemon:lib", |
| "//sdk/fidl/fuchsia.developer.bridge:fuchsia.developer.bridge-rustc", |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol-rustc", |
| "//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc", |
| "//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol-rustc", |
| "//src/connectivity/overnet/lib/hoist", |
| "//src/lib/fidl/rust/fidl", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:argh", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:simplelog", |
| "//third_party/rust_crates:tokio", |
| ] |
| |
| # TODO: remove this dep once Overnet is on async-std also. |
| deps += [ "//src/connectivity/overnet/lib/core" ] |
| } |
| } |
| |
| install_host_tools("host") { |
| deps = [ ":bin($host_toolchain)" ] |
| outputs = [ "ffx" ] |
| } |
| |
| group("ffx") { |
| deps = [ |
| ":bin($host_toolchain)", |
| ":host", |
| "daemon:lib($host_toolchain)", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":ffx_tests($host_toolchain)", |
| "daemon:tests", |
| ] |
| } |