blob: ecbc97d826d00248d8686fc4668eeb91e1bd589c [file] [log] [blame]
# 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("//build/components.gni")
import("//build/rust/rustc_binary.gni")
import("//src/sys/core/build/core_shard.gni")
rustc_binary("bin") {
edition = "2021"
output_name = "bt-fct-hci"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.hardware.bluetooth:fuchsia.hardware.bluetooth_rust",
"//src/connectivity/bluetooth/lib/packet-encoding",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/hci.rs",
"src/main.rs",
"src/types.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_package_with_single_component("bt-fct-hci") {
manifest = "meta/bt-fct-hci.cml"
deps = [ ":bin" ]
}
fuchsia_unittest_package("bt-fct-hci-unittests") {
deps = [ ":bin_test" ]
}
core_shard("core-shard") {
shard_file = "meta/bt-fct-hci.core_shard.cml"
}
group("tests") {
testonly = true
deps = [ ":bt-fct-hci-unittests" ]
}