blob: dd0598bb87f08bee661410a1e551484c4e678d14 [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")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "inspect_vmo_example"
with_unit_tests = true
edition = "2018"
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/inspect/rust/fuchsia-inspect",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:structopt",
"//third_party/rust_crates:thiserror",
]
}
package("inspect_vmo_example") {
deps = [ ":bin" ]
binary = "inspect_vmo_example"
meta = [
{
path = rebase_path("meta/inspect_vmo_example.cmx")
dest = "inspect_vmo_example.cmx"
},
]
}
test_package("inspect_vmo_example_tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "inspect_vmo_example_bin_test"
dest = "inspect_vmo_example_tests"
environments = basic_envs
},
]
}