blob: 5cab91235d2d70fdbc6e0d44c480d854d0c93ea6 [file] [log] [blame]
# Copyright 2021 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("fuchsia-audio-dai") {
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.media:fuchsia.media_rust",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:derivative",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [
"src/audio.rs",
"src/discover.rs",
"src/driver.rs",
"src/lib.rs",
"src/test.rs",
]
test_deps = [
"//src/connectivity/bluetooth/testing/realmbuilder-mock-helpers",
"//src/lib/async-utils",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component-test",
"//src/lib/testing/fixture",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_unittest_package("fuchsia-audio-dai-tests") {
deps = [ ":fuchsia-audio-dai_test" ]
}
group("tests") {
testonly = true
deps = [ ":fuchsia-audio-dai-tests" ]
}