blob: 3c454e0c35f1e40b154529f283495a6178c1d7ad [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("wlan-hw-sim") {
testonly = true
with_unit_tests = true
name = "wlan_hw_sim"
edition = "2018"
deps = [
"//garnet/lib/rust/files_async",
"//garnet/lib/rust/io_util",
"//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.ieee80211:fuchsia.wlan.ieee80211-rustc",
"//sdk/fidl/fuchsia.wlan.internal:fuchsia.wlan.internal-rustc",
"//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme-rustc",
"//sdk/fidl/fuchsia.wlan.policy:fuchsia.wlan.policy-rustc",
"//sdk/fidl/fuchsia.wlan.sme:fuchsia.wlan.sme-rustc",
"//sdk/fidl/fuchsia.wlan.tap:fuchsia.wlan.tap-rustc",
"//sdk/lib/device-watcher/rust",
"//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/ieee80211",
"//src/connectivity/wlan/lib/isolated-devmgr",
"//src/connectivity/wlan/lib/rsn:wlan-rsn",
"//src/connectivity/wlan/lib/wlan_dev",
"//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/storage/fuchsia-vfs-watcher",
"//src/lib/syslog/rust:syslog",
"//src/lib/zerocopy",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bitfield",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:lazy_static",
"//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",
]
}
fuchsia_unittest_package("wlan-hw-sim-lib-tests") {
deps = [ ":wlan-hw-sim_test" ]
}