blob: 6e93e6cc76cd5e1a0af32fecc70cb6128bbe3899 [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_library.gni")
import("//build/test/test_package.gni")
rustc_library("wlan-hw-sim") {
testonly = true
with_unit_tests = true
name = "wlan_hw_sim"
edition = "2018"
deps = [
"//garnet/lib/rust/files_async",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc",
"//sdk/fidl/fuchsia.wlan.device:fuchsia.wlan.device-rustc",
"//sdk/fidl/fuchsia.wlan.device.service:fuchsia.wlan.device.service-rustc",
"//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme-rustc",
"//sdk/fidl/fuchsia.wlan.policy:fuchsia.wlan.policy-rustc",
"//sdk/fidl/fuchsia.wlan.service:fuchsia.wlan.service-rustc",
"//sdk/fidl/fuchsia.wlan.sme:fuchsia.wlan.sme-rustc",
"//sdk/fidl/fuchsia.wlan.tap:fuchsia.wlan.tap-rustc",
"//src/connectivity/wlan/lib/common/rust:wlan-common",
"//src/connectivity/wlan/lib/eapol",
"//src/connectivity/wlan/lib/frame_writer:wlan-frame-writer",
"//src/connectivity/wlan/lib/isolated-devmgr",
"//src/connectivity/wlan/lib/rsn:wlan-rsn",
"//src/connectivity/wlan/testing/wlan-devmgr/fidl:devmgr-rustc",
"//src/connectivity/wlan/testing/wlantap-client",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/network/ethernet",
"//src/lib/syslog/rust:syslog",
"//src/lib/zerocopy",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/lib/zircon/rust:fuchsia-zircon-sys",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bitfield",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/config.rs",
"src/eth_helper.rs",
"src/event_handler_helper.rs",
"src/lib.rs",
"src/test_utils.rs",
"src/wlancfg_helper.rs",
"src/wlanstack_helper.rs",
]
}
unittest_package("wlan-hw-sim-lib-tests") {
deps = [ ":wlan-hw-sim_test" ]
tests = [
{
name = "wlan_hw_sim_lib_test"
environments = basic_envs
},
]
}