| # Copyright 2022 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. | |
| assert(is_host, "ffx_target is for use with the host toolchain only") | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":lib_test", | |
| "behavior:lib_test", | |
| "connector:tests", | |
| "holders:tests", | |
| ] | |
| } | |
| group("target") { | |
| deps = [ ":lib" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| rustc_library("lib") { | |
| sources = [ | |
| "src/analytics.rs", | |
| "src/cache.rs", | |
| "src/connection.rs", | |
| "src/error.rs", | |
| "src/fdomain_transport.rs", | |
| "src/fidl_pipe.rs", | |
| "src/info.rs", | |
| "src/lib.rs", | |
| "src/list.rs", | |
| "src/registry.rs", | |
| "src/resolve.rs", | |
| "src/ssh_connector.rs", | |
| "src/store.rs", | |
| "src/target_connector.rs", | |
| "src/uart_connector.rs", | |
| "src/usb_connector.rs", | |
| "src/vsock_connector.rs", | |
| ] | |
| crate_name = "ffx_target" | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/*", | |
| "//src/developer/fuchsia-controller:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust", | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust", | |
| "//src/connectivity/overnet/lib/circuit", | |
| "//src/connectivity/overnet/lib/core", | |
| "//src/developer/ffx/command/error:lib", | |
| "//src/developer/ffx/config:lib", | |
| "//src/developer/ffx/fidl:fuchsia.developer.ffx_rust", | |
| "//src/developer/ffx/lib/addr:lib", | |
| "//src/developer/ffx/lib/diagnostics/analytics:lib", | |
| "//src/developer/ffx/lib/diagnostics/formatting:lib", | |
| "//src/developer/ffx/lib/discovery:lib", | |
| "//src/developer/ffx/lib/errors:lib", | |
| "//src/developer/ffx/lib/futures:lib", | |
| "//src/developer/ffx/lib/manual_targets:lib", | |
| "//src/developer/ffx/lib/netext:lib", | |
| "//src/developer/ffx/lib/rcs:lib", | |
| "//src/developer/ffx/lib/ssh:lib", | |
| "//src/developer/ffx/lib/target_errors:lib", | |
| "//src/developer/ffx/lib/timeout:lib", | |
| "//src/developer/ffx/lib/uart_driver_api:lib", | |
| "//src/developer/ffx/lib/usb_driver_api:lib", | |
| "//src/lib/analytics/rust:lib", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fdomain/local", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/versioning/version-history/rust/data", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:async-channel", | |
| "//third_party/rust_crates:async-lock", | |
| "//third_party/rust_crates:chrono", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:futures-lite", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:nix", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:tempfile", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:tokio", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| rustc_test("lib_test") { | |
| sources = [ | |
| "src/analytics.rs", | |
| "src/cache.rs", | |
| "src/connection.rs", | |
| "src/error.rs", | |
| "src/fdomain_transport.rs", | |
| "src/fidl_pipe.rs", | |
| "src/info.rs", | |
| "src/lib.rs", | |
| "src/list.rs", | |
| "src/registry.rs", | |
| "src/resolve.rs", | |
| "src/ssh_connector.rs", | |
| "src/store.rs", | |
| "src/target_connector.rs", | |
| "src/uart_connector.rs", | |
| "src/usb_connector.rs", | |
| "src/vsock_connector.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust", | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust", | |
| "//src/connectivity/overnet/lib/circuit", | |
| "//src/connectivity/overnet/lib/core", | |
| "//src/developer/ffx/command/error:lib", | |
| "//src/developer/ffx/config:lib", | |
| "//src/developer/ffx/fidl:fuchsia.developer.ffx_rust", | |
| "//src/developer/ffx/lib/addr:lib", | |
| "//src/developer/ffx/lib/diagnostics/analytics:lib", | |
| "//src/developer/ffx/lib/diagnostics/formatting:lib", | |
| "//src/developer/ffx/lib/discovery:lib", | |
| "//src/developer/ffx/lib/errors:lib", | |
| "//src/developer/ffx/lib/futures:lib", | |
| "//src/developer/ffx/lib/manual_targets:lib", | |
| "//src/developer/ffx/lib/netext:lib", | |
| "//src/developer/ffx/lib/rcs:lib", | |
| "//src/developer/ffx/lib/ssh:lib", | |
| "//src/developer/ffx/lib/target_errors:lib", | |
| "//src/developer/ffx/lib/timeout:lib", | |
| "//src/developer/ffx/lib/uart_driver_api:lib", | |
| "//src/developer/ffx/lib/usb_driver_api:lib", | |
| "//src/lib/analytics/rust:lib", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fdomain/local", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/versioning/version-history/rust/data", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:async-channel", | |
| "//third_party/rust_crates:async-lock", | |
| "//third_party/rust_crates:chrono", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:futures-lite", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:nix", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:tempfile", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:tokio", | |
| ] + | |
| [ | |
| "//src/lib/fuchsia", | |
| "//third_party/rust_crates:mockall", | |
| "//third_party/rust_crates:pretty_assertions", | |
| ] | |
| output_name = "ffx_target_lib_test" | |
| args = [ | |
| "--skip=list::test::test_merge_target_usb_with_serial_and_mdns_without_serial_no_bootid", | |
| "--skip=vsock_connector::tests::test_do_connect_unconnected_cid_does_not_succeed_prematurely", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx:*", | |
| ] | |
| } | |
| } |