| #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/package.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_binary("bin") { |
| name = "wlan_hw_sim" |
| with_unit_tests = true |
| with_lto = "fat" |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/rust/ethernet", |
| "//garnet/lib/wlan/fidl:fidl-rustc", |
| "//garnet/lib/wlan/fidl:service-rustc", |
| "//garnet/lib/wlan/fidl:sme-rustc", |
| "//garnet/lib/wlan/fidl:wlantap-rustc", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-component", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc", |
| "//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme-rustc", |
| "//sdk/fidl/fuchsia.wlan.service:fuchsia.wlan.service-rustc", |
| "//src/connectivity/wlan/lib/common/rust:wlan-common", |
| "//src/connectivity/wlan/testing/wlantap-client", |
| "//third_party/rust_crates:bitfield", |
| "//third_party/rust_crates:byteorder", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:futures-preview", |
| "//third_party/rust_crates:hex", |
| "//third_party/rust_crates:pin-utils", |
| ] |
| } |
| |
| package("wlan-hw-sim") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binary = "wlan_hw_sim" |
| |
| meta = [ |
| { |
| path = rebase_path("meta/wlan-hw-sim.cmx") |
| dest = "wlan-hw-sim.cmx" |
| }, |
| ] |
| } |
| |
| test_package("wlan-hw-sim-tests") { |
| deps = [ |
| ":bin", |
| ] |
| |
| tests = [ |
| { |
| name = "wlan_hw_sim_bin_test" |
| environments = [ nuc_env ] |
| }, |
| ] |
| } |