| # 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("locate_bin") { |
| name = "locate" |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-component", |
| "//garnet/public/rust/fuchsia-runtime", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//src/sys/component_index/fidl:index-rustc", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:futures-preview", |
| ] |
| } |
| |
| package("locate") { |
| deps = [ |
| ":locate_bin", |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("meta/locate.cmx") |
| dest = "locate.cmx" |
| }, |
| ] |
| |
| binaries = [ |
| { |
| name = "locate" |
| shell = true |
| }, |
| ] |
| } |
| |
| rustc_binary("locate_integration_test_bin") { |
| name = "locate_integration_test" |
| with_unit_tests = true |
| edition = "2018" |
| source_root = "src/locate_integration_test.rs" |
| deps = [ |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-component", |
| "//garnet/public/rust/fuchsia-runtime", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//sdk/fidl/fuchsia.data:fuchsia.data-rustc", |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", |
| "//third_party/rust_crates:failure", |
| ] |
| } |
| |
| test_package("locate_integration_test") { |
| deps = [ |
| ":locate_integration_test_bin", |
| ] |
| |
| tests = [ |
| { |
| name = "locate_integration_test" |
| dest = "locate_integration_test" |
| environments = basic_envs |
| }, |
| ] |
| } |