| # 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 = "2024" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component.resolution:fuchsia.component.resolution_rust", |
| "//sdk/fidl/fuchsia.driver.test:fuchsia.driver.test_rust", |
| "//sdk/fidl/fuchsia.hardware.network:fuchsia.hardware.network_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/fidl/fuchsia.net:fuchsia.net_rust", |
| "//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common_rust", |
| "//sdk/fidl/fuchsia.wlan.device:fuchsia.wlan.device_rust", |
| "//sdk/fidl/fuchsia.wlan.ieee80211:fuchsia.wlan.ieee80211_rust", |
| "//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme_rust", |
| "//sdk/fidl/fuchsia.wlan.policy:fuchsia.wlan.policy_rust", |
| "//sdk/fidl/fuchsia.wlan.softmac:fuchsia.wlan.softmac_rust", |
| "//sdk/fidl/fuchsia.wlan.tap:fuchsia.wlan.tap_rust", |
| "//sdk/rust/zx", |
| "//src/connectivity/lib/network-device/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/rsn:wlan-rsn", |
| "//src/connectivity/wlan/testing/wlantap-client", |
| "//src/connectivity/wlan/tests/helpers/realm-factory/fidl:test.wlan.realm_rust", |
| "//src/connectivity/wlan/tests/helpers/test-realm-helpers", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/fuchsia-sync", |
| "//src/testing/realm_client/rust", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:hex", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:zerocopy", |
| ] |
| |
| sources = [ |
| "src/config.rs", |
| "src/event/action.rs", |
| "src/event/branch.rs", |
| "src/event/buffered.rs", |
| "src/event/convert.rs", |
| "src/event/extract.rs", |
| "src/event/filter.rs", |
| "src/event/mod.rs", |
| "src/lib.rs", |
| "src/netdevice_helper.rs", |
| "src/test_utils.rs", |
| "src/wlancfg_helper.rs", |
| ] |
| } |
| |
| fuchsia_unittest_package("wlan-hw-sim-lib-tests") { |
| deps = [ ":wlan-hw-sim_test" ] |
| } |