blob: c4b98693b8e28762a88b539619668cee15a8ffe1 [file] [log] [blame]
# Copyright 2018 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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
edition = "2021"
output_name = "bt-cli"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth_rust",
"//sdk/fidl/fuchsia.bluetooth.sys:fuchsia.bluetooth.sys_rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/tools/lib/pairing-delegate",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:prettytable-rs",
"//third_party/rust_crates:regex",
"//third_party/rust_crates/compat/rustyline",
]
test_deps = [
"//src/connectivity/bluetooth/lib/bt-fidl-mocks",
"//src/lib/fuchsia",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:assert_matches",
]
sources = [
"src/commands.rs",
"src/main.rs",
"src/types.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_shell_package("bt-cli") {
deps = [ ":bin" ]
}
fuchsia_unittest_package("bt-cli-unittests") {
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-cli-unittests" ]
}