| # Copyright 2017 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/bind/bind.gni") |
| import("//build/config/fuchsia/rules.gni") |
| |
| group("testing") { |
| testonly = true |
| public_deps = [ |
| ":wlanphy-testdev", |
| "util", |
| ] |
| } |
| |
| bind_rules("wlanphy_test_bind") { |
| disable_autobind = true |
| rules = "wlanphy_test.bind" |
| output = "wlanphy_test_bind.h" |
| tests = "bind_tests.json" |
| deps = [ "//src/devices/bind/fuchsia.test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":wlanphy_test_bind_test" ] |
| } |
| |
| driver_module("wlanphy-testdev") { |
| sources = [ |
| "driver.cc", |
| "iface-device.cc", |
| "iface-device.h", |
| "phy-device.cc", |
| "phy-device.h", |
| ] |
| |
| deps = [ |
| ":wlanphy_test_bind", |
| "//garnet/lib/wlan/protocol", |
| "//sdk/banjo/ddk.hw.wlan.wlaninfo", |
| "//sdk/banjo/fuchsia.hardware.sdio", |
| "//sdk/banjo/fuchsia.hardware.test", |
| "//sdk/banjo/fuchsia.hardware.wlanphy", |
| "//sdk/fidl/fuchsia.wlan.device", |
| "//sdk/fidl/fuchsia.wlan.device:fuchsia.wlan.device_llcpp", |
| "//src/connectivity/wlan/lib/common/cpp:common", |
| "//src/devices/lib/driver", |
| "//src/lib/ddk", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| |
| configs += [ "//build/config/fuchsia:enable_zircon_asserts" ] |
| } |