| # 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/host.gni") |
| import("//build/package.gni") |
| import("//build/package/component.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_binary("triage_bin") { |
| name = "triage" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/rust/cm_json", |
| |
| # "//src/lib/syslog/rust:syslog", |
| # "//third_party/rust_crates:argh", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:clap", |
| "//third_party/rust_crates:json5", |
| "//third_party/rust_crates:lazy_static", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:nom", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:structopt", |
| "//third_party/rust_crates:tempfile", |
| "//third_party/rust_crates:thiserror", |
| "//third_party/rust_crates:valico", |
| ] |
| } |
| |
| install_host_tools("install") { |
| deps = [ ":triage_bin" ] |
| |
| outputs = [ "triage" ] |
| } |
| |
| test_package("triage_tests") { |
| deps = [ |
| ":triage_bin_test", |
| "//src/diagnostics/triage/test:triage_test", |
| "//src/diagnostics/triage/test:triage_test_host", |
| ] |
| |
| tests = [ |
| { |
| name = "triage_bin_test" |
| }, |
| ] |
| } |
| |
| group("triage") { |
| deps = [ ":triage_bin" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":triage_tests" ] |
| } |