blob: 40d985b1d16c2ecff7c87dd42b666f24c376bcaf [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/package.gni")
import("//build/rust/rustc_binary.gni")
group("example") {
deps = [ ":soundplayer_example" ]
}
package("soundplayer_example") {
deps = [ ":bin" ]
binaries = [
{
name = "soundplayer_example"
shell = true
},
]
meta = [
{
path = rebase_path("meta/soundplayer_example.cmx")
dest = "soundplayer_example.cmx"
},
]
resources = [
{
path = rebase_path(
"//garnet/test_data/media/third_party/chromium_media_test_data/sfx_s16le.wav")
dest = "sfx.wav"
},
]
}
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" ]
}