blob: 02060aaed525c9b7e9900c6b1c28e42f4dff8604 [file] [log] [blame]
# 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_binary.gni")
group("example") {
deps = [ ":soundplayer_example" ]
}
rustc_binary("bin") {
name = "soundplayer_example"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.media:fuchsia.media-rustc",
"//sdk/fidl/fuchsia.media.sounds:fuchsia.media.sounds-rustc",
"//sdk/fidl/fuchsia.mem:fuchsia.mem-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl_table_validation",
"//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:futures",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
}
resource("data") {
sources = [ "//garnet/test_data/media/third_party/chromium_media_test_data/sfx_s16le.wav" ]
outputs = [ "data/sfx.wav" ]
}
fuchsia_shell_package("soundplayer_example") {
manifest = "meta/soundplayer_example.cmx"
deps = [
":bin",
":data",
]
}