blob: 76eb0df545095f503aa8c55971e7a09b7eff0d2b [file] [log] [blame] [edit]
# 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_library.gni")
rustc_library("bt-avctp") {
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/rust/zx",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/connectivity/bluetooth/lib/packet-encoding",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-sync",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:slab",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/avc/mod.rs",
"src/avc/tests.rs",
"src/avc/types.rs",
"src/avctp/mod.rs",
"src/avctp/tests.rs",
"src/avctp/types.rs",
"src/lib.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_unittest_package("bt-avctp-tests") {
deps = [ ":bt-avctp_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-avctp-tests" ]
}