blob: f2cbcba7a6b964d701781cafec28f06aa5492a6e [file] [log] [blame]
# Copyright 2018 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("bt-avdtp") {
name = "bt_avdtp"
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc",
"//sdk/fidl/fuchsia.bluetooth.avdtp:fuchsia.bluetooth.avdtp-rustc",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/lib/packet-encoding",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bitfield",
"//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",
]
test_deps = [
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr-rustc",
"//third_party/rust_crates:matches",
]
sources = [
"src/lib.rs",
"src/rtp.rs",
"src/stream_endpoint.rs",
"src/tests.rs",
"src/types.rs",
]
}
fuchsia_unittest_package("bt-avdtp-tests") {
executable_path = "bin/bt_avdtp_lib_test"
deps = [ ":bt-avdtp_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-avdtp-tests" ]
}