blob: 6fd170c4d7db78ce6509866d3531d6457503c51c [file] [log] [blame] [edit]
# 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
deps = [
"//garnet/lib/rust/crates/wlantap-client",
"//garnet/lib/wlan/fidl:fidl-rustc",
"//garnet/public/lib/wlan/fidl: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",
]
}
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") {
deprecated_system_image = true
testonly = true
deps = [
":bin"
]
tests = [
{
name = "wlan_hw_sim_bin_test_rustc"
dest = "wlan-hw-sim_bin_test_rustc"
}
]
}