blob: eb2213b5b8ec01a3aad8570519f746e90cb5024e [file]
# 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/bind/bind.gni")
import("//build/config/fuchsia/rules.gni")
import("//build/driver_package.gni")
bind_rules("wlantapctl_bind") {
rules = "wlantapctl.bind"
output = "wlantapctl_bind.h"
tests = "bind_tests.json"
deps = [ "//src/devices/bind/fuchsia.test" ]
}
group("tests") {
testonly = true
deps = [ ":wlantapctl_bind_test" ]
}
driver_module("wlantap_driver") {
output_name = "wlantap"
sources = [
"utils.cc",
"utils.h",
"wlantap-ctl.cc",
"wlantap-mac.cc",
"wlantap-mac.h",
"wlantap-phy.cc",
"wlantap-phy.h",
]
deps = [
":wlantapctl_bind",
"//garnet/lib/wlan/protocol",
"//sdk/banjo/ddk.hw.wlan.wlaninfo",
"//sdk/banjo/fuchsia.hardware.wlanphyimpl",
"//sdk/fidl/fuchsia.wlan.tap:fuchsia.wlan.tap",
"//sdk/fidl/fuchsia.wlan.tap:fuchsia.wlan.tap_llcpp",
"//src/connectivity/wlan/lib/common/cpp:common",
"//src/devices/lib/driver",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/sync",
"//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" ]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
driver_package("wlantap") {
deps = [ ":wlantap_driver" ]
drivers = [
{
name = "wlantap.so"
},
]
}