blob: 6f86b9a1bd81af8f88d34108db56b82daefc012a [file] [log] [blame]
# Copyright 2020 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 = "donut"
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.net:fuchsia.net-rustc",
"//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc",
"//sdk/fidl/fuchsia.wlan.device:fuchsia.wlan.device-rustc",
"//sdk/fidl/fuchsia.wlan.policy:fuchsia.wlan.policy-rustc",
"//sdk/fidl/fuchsia.wlan.product.deprecatedconfiguration:fuchsia.wlan.product.deprecatedconfiguration-rustc",
"//src/connectivity/wlan/lib/common/rust/:wlan-common",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:clap",
"//third_party/rust_crates:eui48",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:structopt",
]
sources = [
"src/main.rs",
"src/opts.rs",
"src/policy.rs",
]
}
package("donut") {
deps = [ ":bin" ]
binaries = [
{
path = "donut"
name = "donut"
shell = true
},
]
meta = [
{
path = rebase_path("meta/donut.cmx")
dest = "donut.cmx"
},
]
}
test_package("donut-tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "donut_bin_test"
environments = basic_envs
},
]
}