blob: 532e8e3c48a7af35e810e381d4cf60932793b739 [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("//build/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
edition = "2021"
output_name = "bt-rootcanal"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth.pandora:fuchsia.bluetooth.pandora_rust",
"//sdk/fidl/fuchsia.hardware.bluetooth:fuchsia.hardware.bluetooth_rust",
"//sdk/lib/device-watcher/rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-sync",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [ "src/main.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_component("component") {
component_name = "bt-rootcanal"
manifest = "meta/bt-rootcanal.cml"
deps = [ ":bin" ]
}
fuchsia_package("bt-rootcanal") {
deps = [ ":component" ]
}
fuchsia_unittest_package("bt-rootcanal-unittests") {
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-rootcanal-unittests" ]
}