| # 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("examples") { |
| testonly = true |
| deps = [ ":example_player" ] |
| } |
| |
| rustc_binary("example_player_bin") { |
| name = "example_player" |
| edition = "2018" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.media:fuchsia.media-rustc", |
| "//sdk/fidl/fuchsia.media.sessions2:fuchsia.media.sessions2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| package("example_player") { |
| deps = [ ":example_player_bin" ] |
| |
| binaries = [ |
| { |
| name = "example_player" |
| }, |
| ] |
| meta = [ |
| { |
| path = rebase_path("meta/example_player.cmx") |
| dest = "example_player.cmx" |
| }, |
| ] |
| } |