blob: 04d355e809dc8b34f388048bbd998aa70c47ab51 [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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
edition = "2021"
output_name = "bt-avrcp-controller"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth.avrcp:fuchsia.bluetooth.avrcp_rust",
"//sdk/fidl/fuchsia.bluetooth.avrcp.test:fuchsia.bluetooth.avrcp.test_rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//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:rustyline",
]
test_deps = [ "//third_party/rust_crates:assert_matches" ]
sources = [
"src/commands.rs",
"src/main.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_package("bt-avrcp-controller") {
deps = [ ":bin" ]
}
fuchsia_unittest_package("bt-avrcp-controller-unittests") {
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-avrcp-controller-unittests" ]
}