blob: e08951121a9075b71c4be056fb0147f7f81c137e [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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "bt_avrcp"
edition = "2018"
with_unit_tests = true
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc",
"//sdk/fidl/fuchsia.bluetooth.avrcp:fuchsia.bluetooth.avrcp-rustc",
"//sdk/fidl/fuchsia.bluetooth.avrcp.test:fuchsia.bluetooth.avrcp.test-rustc",
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr-rustc",
"//src/connectivity/bluetooth/lib/bt-avctp",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fdio/rust:fdio",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bitflags",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:slab",
"//third_party/rust_crates:thiserror",
]
}
package("bt-avrcp") {
deps = [ ":bin" ]
binary = "bt_avrcp"
meta = [
{
path = rebase_path("meta/bt-avrcp.cmx")
dest = "bt-avrcp.cmx"
},
]
}
test_package("tests") {
package_name = "bt-avrcp-tests"
deps = [ ":bin_test" ]
tests = [
{
name = "bt_avrcp_bin_test"
dest = "bt-avrcp-unittests"
environments = basic_envs
},
]
}