blob: 946ef7c53372508e44916df45c0becf5ef16e497 [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/rust/rustc_binary.gni")
import("//build/package.gni")
rustc_binary("bin") {
name = "wlan_hw_sim"
with_unit_tests = true
with_lto = "fat"
deps = [
"//garnet/lib/rust/crates/wlantap-client",
"//garnet/lib/wlan/fidl:fidl-rustc",
"//garnet/public/fidl/fuchsia.wlan.service:fuchsia.wlan.service-rustc",
"//garnet/lib/wlan/fidl:wlantap-rustc",
"//garnet/public/rust/crates/fuchsia-app",
"//garnet/public/rust/crates/fuchsia-async",
"//garnet/public/rust/crates/fuchsia-zircon",
"//third_party/rust-crates/rustc_deps:bitfield",
"//third_party/rust-crates/rustc_deps:byteorder",
"//third_party/rust-crates/rustc_deps:failure",
"//third_party/rust-crates/rustc_deps:futures-preview",
]
}
package("wlan-hw-sim") {
deps = [
":bin",
]
binary = "rust_crates/wlan_hw_sim"
meta = [
{
path = rebase_path("meta/wlan-hw-sim.cmx")
dest = "wlan-hw-sim.cmx"
}
]
}
package("wlan-hw-sim-tests") {
testonly = true
deps = [
":bin"
]
tests = [
{
name = "wlan_hw_sim_bin_test_rustc"
dest = "wlan-hw-sim_bin_test_rustc"
}
]
}