blob: 28f4e127cd9337dfa8cf40cfad9982d9b97af109 [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("bt-avdtp") {
edition = "2021"
with_unit_tests = true
deps = [
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/lib/packet-encoding",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-sync",
"//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:slab",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr_rust",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:assert_matches",
]
sources = [
"src/lib.rs",
"src/rtp.rs",
"src/stream_endpoint.rs",
"src/tests.rs",
"src/types.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_unittest_package("bt-avdtp-tests") {
deps = [ ":bt-avdtp_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-avdtp-tests" ]
}