| # 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_data.gni") | |
| import("//src/developer/ffx/build/ffx_tool.gni") | |
| if (is_host) { | |
| bazel_ffx_tool("ffx_target_tool") { | |
| output_name = "ffx-target" | |
| } | |
| host_test_data("ffx_target_tool_test_data") { | |
| visibility = [ | |
| "//src/connectivity/network/testing/conformance/emulator:*", | |
| "//src/developer/ffx/tests/connection:*", | |
| "//third_party/network-conformance/*", | |
| ] | |
| data_deps = [ ":ffx_target_tool_host_tool" ] | |
| sources = [ | |
| "${host_tools_dir}/ffx-target", | |
| "${host_tools_dir}/ffx-target.json", | |
| ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| # `:ffx_target_tests` aggregates `<subdir>:<plugin_name>_tests` for | |
| # unmigrated plugins in `plugin_deps` below. | |
| ":ffx_target_tests", | |
| "list/target_formatter:target_formatter_test", | |
| "package:tests", | |
| "repository:tests", | |
| # Plugins migrated to Bazel define standalone unit test targets that are | |
| # not aggregated by `:ffx_target_tests`. | |
| "add:tests", | |
| "bootloader:tests", | |
| "discover:tests", | |
| "echo:tests", | |
| "fastboot:tests", | |
| "flash:tests", | |
| "get-time:tests", | |
| "list:tests", | |
| "log-message:tests", | |
| "off:tests", | |
| "reboot:tests", | |
| "remove:tests", | |
| "screenshot:tests", | |
| "show:tests", | |
| "snapshot:tests", | |
| "ssh:tests", | |
| "update:tests", | |
| "wipe:tests", | |
| ] | |
| } | |
| group("host_tests") { | |
| testonly = true | |
| deps = [ | |
| "package:host_tests", | |
| "ssh:host_tests", | |
| ] | |
| } | |
| } | |
| ## 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") | |
| ffx_plugin("ffx_target") { | |
| args_deps = [ | |
| "//src/developer/ffx/core:lib", | |
| "//third_party/rust_crates:argh", | |
| ] | |
| args_sources = [ "src/args.rs" ] | |
| edition = "2024" | |
| plugin_deps = [ | |
| "//src/developer/ffx/plugins/target/add:ffx_target_add", | |
| "//src/developer/ffx/plugins/target/bootloader:ffx_bootloader", | |
| "//src/developer/ffx/plugins/target/default:ffx_target_default", | |
| "//src/developer/ffx/plugins/target/discover:ffx_target_discover", | |
| "//src/developer/ffx/plugins/target/echo:ffx_target_echo", | |
| "//src/developer/ffx/plugins/target/fastboot:ffx_fastboot_tool", | |
| "//src/developer/ffx/plugins/target/flash:ffx_flash", | |
| "//src/developer/ffx/plugins/target/get-time:ffx_target_get_time", | |
| "//src/developer/ffx/plugins/target/list:ffx_list", | |
| "//src/developer/ffx/plugins/target/log-message:ffx_target_log_message", | |
| "//src/developer/ffx/plugins/target/off:ffx_off", | |
| "//src/developer/ffx/plugins/target/package:ffx_target_package", | |
| "//src/developer/ffx/plugins/target/reboot:ffx_reboot", | |
| "//src/developer/ffx/plugins/target/remove:ffx_target_remove", | |
| "//src/developer/ffx/plugins/target/repository:ffx_target_repository", | |
| "//src/developer/ffx/plugins/target/screenshot:ffx_target_screenshot", | |
| "//src/developer/ffx/plugins/target/shell:ffx_target_shell", | |
| "//src/developer/ffx/plugins/target/show:ffx_target_show", | |
| "//src/developer/ffx/plugins/target/snapshot:ffx_snapshot", | |
| "//src/developer/ffx/plugins/target/ssh:ffx_target_ssh", | |
| "//src/developer/ffx/plugins/target/status:ffx_target_status", | |
| "//src/developer/ffx/plugins/target/update:ffx_update", | |
| "//src/developer/ffx/plugins/target/wait:ffx_wait", | |
| "//src/developer/ffx/plugins/target/wipe:ffx_wipe", | |
| ] | |
| sdk_category = "not-yet-specified" | |
| version = "0.1.0" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/frontends/ffx:*", | |
| ] | |
| } |