| # 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_plugin.gni") |
| import("//src/developer/ffx/build/ffx_tool.gni") |
| |
| if (is_host) { |
| ffx_plugin("ffx_component") { |
| version = "0.1.0" |
| edition = "2021" |
| plugin_deps = [ |
| "capability:ffx_component_capability", |
| "collection:ffx_component_collection", |
| "copy:ffx_component_copy", |
| "create:ffx_component_create", |
| "destroy:ffx_component_destroy", |
| "doctor:ffx_component_doctor", |
| "explore:ffx_component_explore", |
| "graph:ffx_component_graph", |
| "list:ffx_component_list", |
| "reload:ffx_component_reload", |
| "resolve:ffx_component_resolve", |
| "route:ffx_component_route", |
| "run:ffx_component_run", |
| "run-legacy:ffx_component_run_legacy", |
| "show:ffx_component_show", |
| "start:ffx_component_start", |
| "stop:ffx_component_stop", |
| "storage:ffx_component_storage", |
| ] |
| |
| args_sources = [ "src/args.rs" ] |
| } |
| |
| ffx_tool("ffx_component_tool") { |
| edition = "2021" |
| output_name = "ffx-component" |
| deps = [ |
| ":ffx_component_suite", |
| "//src/lib/fuchsia-async", |
| ] |
| sources = [ "src/main.rs" ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| "common:ffx_component_test", |
| "destroy:ffx_component_destroy_tests", |
| "doctor:ffx_component_doctor_tests", |
| "graph:ffx_component_graph_tests", |
| "list:ffx_component_list_tests", |
| "reload:ffx_component_reload_tests", |
| "resolve:ffx_component_resolve_tests", |
| "route:ffx_component_route_tests", |
| "run-legacy:ffx_component_run_legacy_tests", |
| "show:ffx_component_show_tests", |
| "start:ffx_component_start_tests", |
| "stop:ffx_component_stop_tests", |
| ] |
| } |
| |
| if (is_host) { |
| group("host_tests") { |
| testonly = true |
| deps = [ |
| "create:host_tests", |
| "run:host_tests", |
| ] |
| } |
| } |
| |
| if (is_fuchsia) { |
| group("package_deps_for_host_tests") { |
| testonly = true |
| deps = [ |
| "create:package_deps_for_host_tests", |
| "run:package_deps_for_host_tests", |
| ] |
| } |
| } |