blob: fd54256d69d1a1abc583dde536c2e655e182065c [file] [log] [blame]
# 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.
import("//src/developer/ffx/config.gni")
# The list of tools under this directory
_tools = [
"//src/developer/ffx/plugins/assembly",
"//src/developer/ffx/plugins/audio",
"//src/developer/ffx/plugins/component",
"//src/developer/ffx/plugins/coverage",
"//src/developer/ffx/plugins/debug",
"//src/developer/ffx/plugins/emulator",
"//src/developer/ffx/plugins/forward",
"//src/developer/ffx/plugins/fuzz",
"//src/developer/ffx/plugins/inspect",
"//src/developer/ffx/plugins/log",
"//src/developer/ffx/plugins/package",
"//src/developer/ffx/plugins/profile",
"//src/developer/ffx/plugins/product",
"//src/developer/ffx/plugins/product_bundle",
"//src/developer/ffx/plugins/process",
"//src/developer/ffx/plugins/repository",
"//src/developer/ffx/plugins/scrutiny",
"//src/developer/ffx/plugins/session",
"//src/developer/ffx/plugins/setui",
"//src/developer/ffx/plugins/speedtest",
"//src/developer/ffx/plugins/test",
"//src/developer/ffx/plugins/trace",
"//src/developer/ffx/plugins/wlan",
"auth",
"bluetooth",
"driver",
"echo",
"efi",
"monitor",
"power",
"profiler",
"starnix",
"storage",
"triage",
"usb_driver",
"wm",
]
group("tools") {
public_deps = _tools
# Any plugins that can be built in dual mode should be listed here, and that
# will cause them to be built as host tools that ffx can invoke.
if (ffx_build_dual_mode_plugins_as_subtools) {
public_deps += dual_mode_subtools # from config.gni
}
}
group("bins") {
public_deps = []
foreach(tool, _tools) {
public_deps += [ "$tool:bin" ]
}
if (ffx_build_dual_mode_plugins_as_subtools) {
public_deps += dual_mode_subtool_bins # from config.gni
}
}
group("tests") {
testonly = true
deps = []
foreach(tool, _tools) {
deps += [ "$tool:tests" ]
}
# Playground is experimental so it's not in _tools but we still want to run
# the tests.
deps += [ "playground:tests" ]
if (ffx_build_dual_mode_plugins_as_subtools) {
deps += dual_mode_subtool_tests # from config.gni
}
}
group("host_tests") {
testonly = true
deps = [ "power:host_tests" ]
}