blob: ae23bc7267d2ab90627db422d66b50264dada6d7 [file] [log] [blame]
# Copyright 2019 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/rust/rustc_library.gni")
import("//src/sys/build/components.gni")
rustc_library("lib") {
name = "bt_tool_cli"
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fdio/rust:fdio",
"//src/lib/fuchsia-runtime",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/lib/zircon/rust:fuchsia-zircon-sys",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/lib.rs" ]
}
fuchsia_unittest_package("bt-tool-cli-tests") {
manifest = "meta/bt-tool-cli-tests.cmx"
deps = [
":lib_test",
# include these binaries in our package so we aren't dependent on the /bin ones.
"//src/connectivity/bluetooth/tools/bt-avrcp-controller:bin",
"//src/connectivity/bluetooth/tools/bt-snoop-cli:bin",
]
}