| # Copyright 2022 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":ffx_audio_device_args_test($host_toolchain)", | |
| ":ffx_audio_device_test($host_toolchain)", | |
| ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| ffx_plugin("ffx_audio_device") { | |
| sources = [ | |
| "src/connect.rs", | |
| "src/control.rs", | |
| "src/info.rs", | |
| "src/lib.rs", | |
| "src/list.rs", | |
| "src/serde_ext.rs", | |
| ] | |
| args_deps = [ | |
| "//sdk/fidl/fuchsia.audio.device:fuchsia.audio.device_rust_fdomain", | |
| "//src/developer/ffx/core:lib", | |
| "//src/media/audio/lib/rust:fuchsia_audio_fdomain", | |
| "//third_party/rust_crates:argh", | |
| ] | |
| args_sources = [ "src/args.rs" ] | |
| edition = "2024" | |
| sdk_category = "not-yet-specified" | |
| version = "0.1.0" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/audio:*", | |
| "//src/developer/ffx/plugins/audio/list-devices:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.audio.controller:fuchsia.audio.controller_rust_fdomain", | |
| "//sdk/fidl/fuchsia.audio.device:fuchsia.audio.device_rust_fdomain", | |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_rust_fdomain", | |
| "//sdk/fidl/fuchsia.hardware.audio.signalprocessing:fuchsia.hardware.audio.signalprocessing_rust_fdomain", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain", | |
| "//sdk/fidl/fuchsia.media:fuchsia.media_rust_fdomain", | |
| "//sdk/rust/zx-status", | |
| "//sdk/rust/zx-types", | |
| "//src/developer/ffx/command/error:lib", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/futures:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/developer/ffx/plugins/audio/common:ffx_audio_common", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/media/audio/lib/rust:fuchsia_audio_fdomain", | |
| "//third_party/rust_crates:base64", | |
| "//third_party/rust_crates:blocking", | |
| "//third_party/rust_crates:camino", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:itertools", | |
| "//third_party/rust_crates:prettytable-rs", | |
| "//third_party/rust_crates:serde", | |
| ] | |
| } | |
| if (is_host) { | |
| rustc_test("ffx_audio_device_args_test") { | |
| sources = [ "src/args.rs" ] | |
| edition = "2024" | |
| source_root = "src/args.rs" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.audio.device:fuchsia.audio.device_rust_fdomain", | |
| "//src/developer/ffx/core:lib", | |
| "//src/media/audio/lib/rust:fuchsia_audio_fdomain", | |
| "//third_party/rust_crates:argh", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| rustc_test("ffx_audio_device_test") { | |
| sources = [ | |
| "src/connect.rs", | |
| "src/control.rs", | |
| "src/info.rs", | |
| "src/lib.rs", | |
| "src/list.rs", | |
| "src/serde_ext.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| ":ffx_audio_device_args", | |
| "//sdk/fidl/fuchsia.audio.controller:fuchsia.audio.controller_rust_fdomain", | |
| "//sdk/fidl/fuchsia.audio.device:fuchsia.audio.device_rust_fdomain", | |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_rust_fdomain", | |
| "//sdk/fidl/fuchsia.hardware.audio.signalprocessing:fuchsia.hardware.audio.signalprocessing_rust_fdomain", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain", | |
| "//sdk/fidl/fuchsia.media:fuchsia.media_rust_fdomain", | |
| "//sdk/rust/zx-status", | |
| "//sdk/rust/zx-types", | |
| "//src/developer/ffx/command/error:lib", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/futures:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/developer/ffx/plugins/audio/common:ffx_audio_common", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/media/audio/lib/rust:fuchsia_audio_fdomain", | |
| "//third_party/rust_crates:base64", | |
| "//third_party/rust_crates:blocking", | |
| "//third_party/rust_crates:camino", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:itertools", | |
| "//third_party/rust_crates:prettytable-rs", | |
| "//third_party/rust_crates:serde", | |
| ] + | |
| [ | |
| "//src/lib/fdomain/local", | |
| "//src/lib/fidl/rust/fidl_test_util", | |
| "//src/lib/fuchsia", | |
| "//third_party/rust_crates:assert_matches", | |
| "//third_party/rust_crates:pretty_assertions", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:tempfile", | |
| "//third_party/rust_crates:test-case", | |
| ] | |
| } | |
| } |