| # 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("fuchsia-audio-device-output") { |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio-rustc", |
| "//sdk/fidl/fuchsia.media:fuchsia.media-rustc", |
| "//src/connectivity/bluetooth/lib/async-helpers", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zerocopy", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:bitflags", |
| "//third_party/rust_crates:byteorder", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:num-derive", |
| "//third_party/rust_crates:num-traits", |
| "//third_party/rust_crates:parking_lot", |
| "//third_party/rust_crates:thiserror", |
| "//third_party/rust_crates:tracing", |
| ] |
| |
| test_deps = [ |
| "//src/lib/async-utils", |
| "//src/lib/fuchsia", |
| "//src/lib/testing/fixture", |
| "//third_party/rust_crates:futures-test", |
| ] |
| |
| sources = [ |
| "src/driver.rs", |
| "src/frame_vmo.rs", |
| "src/lib.rs", |
| "src/types.rs", |
| ] |
| |
| configs -= [ "//build/config/rust:allow_unused_results" ] |
| } |
| |
| fuchsia_unittest_package("fuchsia-audio-device-output-tests") { |
| deps = [ ":fuchsia-audio-device-output_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":fuchsia-audio-device-output-tests" ] |
| } |