blob: ae4a4ee28c2dbea1c07fcbb55d03f40f03a88072 [file] [log] [blame]
# 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/rust/rustc_binary.gni")
import("//build/rust/rustc_library.gni")
rustc_binary("bin") {
name = "onet"
edition = "2018"
deps = [
"//src/connectivity/overnet/lib/onet_tool",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
]
non_rust_deps = [ "//third_party/boringssl" ]
sources = [ "src/main.rs" ]
}
package("onet") {
meta = [
{
path = "meta/onet.cmx"
dest = "onet.cmx"
},
]
deps = [ ":bin" ]
binaries = [
{
name = "onet"
shell = true
},
]
}
group("tests") {
testonly = true
}
install_host_tools("host") {
deps = [ ":bin" ]
outputs = [ "onet" ]
}