| # 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/rust/rustc_binary.gni") |
| import("//build/testing/environments.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_binary("bin") { |
| name = "inspect_vmo_example" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//src/lib/diagnostics/inspect/rust", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:structopt", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| fuchsia_package_with_single_component("inspect_vmo_example") { |
| deps = [ ":bin" ] |
| manifest = "meta/inspect_vmo_example.cmx" |
| } |
| |
| fuchsia_unittest_package("inspect_vmo_example_tests") { |
| deps = [ ":bin_test" ] |
| test_specs = { |
| environments = [ emu_env ] |
| } |
| } |
| |
| group("rust-vmo") { |
| testonly = true |
| deps = [ |
| ":inspect_vmo_example", |
| ":tests", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":inspect_vmo_example_tests" ] |
| } |