| # Copyright 2018 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") |
| |
| rustc_binary("bin") { |
| name = "pkg_resolver" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/rust/fidl_fuchsia_pkg_ext", |
| "//garnet/lib/rust/files_async", |
| "//garnet/lib/rust/fuchsia_pkg_uri", |
| "//sdk/fidl/fuchsia.amber:fuchsia.amber-rustc", |
| "//sdk/fidl/fuchsia.pkg:fuchsia.pkg-rustc", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-app", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-syslog", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//garnet/public/rust/tuf", |
| "//third_party/rust-crates/rustc_deps:failure", |
| "//third_party/rust-crates/rustc_deps:futures-preview", |
| "//third_party/rust-crates/rustc_deps:lazy_static", |
| "//third_party/rust-crates/rustc_deps:log", |
| "//third_party/rust-crates/rustc_deps:regex", |
| "//third_party/rust-crates/rustc_deps:tempfile", |
| "//third_party/rust-crates/rustc_deps:url", |
| "//zircon/public/fidl/fuchsia-io:fuchsia-io-rustc", |
| ] |
| } |
| |
| package("pkg_resolver") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binaries = [ |
| { |
| name = "rust_crates/pkg_resolver" |
| dest = "pkg_resolver" |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("meta/pkg_resolver.cmx") |
| dest = "pkg_resolver.cmx" |
| }, |
| ] |
| } |
| |
| test_package("pkg_resolver_tests") { |
| deps = [ |
| ":bin", |
| ] |
| |
| tests = [ |
| { |
| name = "pkg_resolver_bin_test" |
| }, |
| ] |
| } |