blob: d226d473224bdcc47b4d957f92dead6d9047b81c [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/rust/rustc_binary.gni")
import("//src/sys/build/components.gni")
rustc_binary("bin") {
name = "bt_a2dp_loopback"
edition = "2018"
source_root = "src/main.rs"
deps = [
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc",
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr-rustc",
"//sdk/fidl/fuchsia.media.audio:fuchsia.media.audio-rustc",
"//sdk/fidl/fuchsia.mediacodec:fuchsia.mediacodec-rustc",
"//src/connectivity/bluetooth/lib/bt-profile-test-server",
"//src/connectivity/bluetooth/lib/fuchsia-audio-codec",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/trace/rust:trace",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:matches",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("bt-a2dp-loopback-component") {
testonly = true
component_name = "bt-a2dp-loopback"
manifest = "meta/bt-a2dp-loopback.cmx"
deps = [ ":bin" ]
}
fuchsia_package("bt-a2dp-loopback") {
testonly = true
deps = [ ":bt-a2dp-loopback-component" ]
}