blob: a8b6cb48f50a74f18768d8e8243f06713e2bb850 [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
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:fuchsia-async-rustc",
"//garnet/public/rust/crates/fuchsia-zircon:fuchsia-zircon-rustc",
"//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/sandbox")
dest = "sandbox"
}
]
}
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"
}
]
}