| # 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/host.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("pm_build") { |
| version = "0.1.0" |
| edition = "2018" |
| with_unit_tests = true |
| |
| deps = [ |
| "//garnet/lib/rust/fuchsia_pkg", |
| "//garnet/public/rust/mundane", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_derive", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:structopt", |
| ] |
| } |
| |
| install_host_tools("pm_build_host") { |
| deps = [ |
| ":pm_build", |
| ] |
| outputs = [ |
| "pm_build", |
| ] |
| } |