blob: 5410244378aad14efb0eb05a5597c37388b0b607 [file] [edit]
# Copyright 2024 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")
assert(is_host, "FFX tools can only be compiled in the host toolchain")
ffx_plugin("ffx_bluetooth") {
version = "0.1.0"
edition = "2024"
with_unit_tests = false
plugin_deps = [
"src/controller:ffx_bluetooth_controller",
"src/discoverable:ffx_bluetooth_discoverable",
"src/discovery:ffx_bluetooth_discovery",
"src/pairable:ffx_bluetooth_pairable",
"src/pandora:ffx_bluetooth_pandora",
"src/peer:ffx_bluetooth_peer",
]
args_sources = [ "src/args.rs" ]
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates:argh",
]
deps = [ "//src/developer/ffx/lib/errors:lib" ]
}
ffx_tool("ffx_bluetooth_tool") {
edition = "2024"
output_name = "ffx-bluetooth"
deps = [
":ffx_bluetooth_suite",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
}
group("bluetooth") {
deps = [
":ffx_bluetooth_tool",
":ffx_bluetooth_tool_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_bluetooth_tool_versioned" ]
}
group("tests") {
testonly = true
deps = [ ":ffx_bluetooth_tests" ]
}