blob: 3afb7ca10126c96398144b0d9e56141396f3b808 [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/host.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_library.gni")
import("//build/testing/environments.gni")
if (host_toolchain == current_toolchain) {
rustc_binary("bin") {
name = "bindc"
edition = "2018"
with_unit_tests = true
test_environments = [
linux_env,
mac_env,
]
deps = [
"//src/devices/bind/debugger:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:structopt",
]
}
}
install_host_tools("host") {
deps = [ ":bin($host_toolchain)" ]
outputs = [ "bindc" ]
}
group("tests") {
testonly = true
deps = [ ":bin_test($host_toolchain)" ]
}