blob: 19efcc5d81a91bad063000ff01f866c1b68b9be2 [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/config/fuchsia/rules.gni")
import("//build/package.gni")
all_hdrs = [
"convert.h",
"device.h",
"driver.h",
]
all_src = [
"convert.cc",
"device.cc",
"driver.cc",
]
all_deps = [
"//garnet/lib/wlan/fidl",
"//garnet/lib/wlan/protocol",
"//sdk/fidl/fuchsia.wlan.mlme",
"//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme_c_server",
"//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme_c_client",
"//src/connectivity/wlan/lib/common/cpp:common",
"//zircon/public/banjo/ddk.hw.wlan.wlaninfo",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/ddk",
"//zircon/public/lib/driver",
]
source_set("lib_source") {
public = all_hdrs
sources = all_src
public_deps = all_deps
}
source_set("test_source") {
defines = [ "WLANIF_TEST=1" ]
public = all_hdrs
sources = all_src
public_deps = all_deps
}
driver_module("wlanif_driver") {
output_name = "wlanif"
deps = [
":lib_source",
]
configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ]
configs += [
"//build/config/fuchsia:enable_zircon_asserts",
"//build/config/fuchsia:static_cpp_standard_library",
]
}
package("wlanif") {
deprecated_system_image = true
deps = [
":wlanif_driver",
]
drivers = [
{
name = "wlanif.so"
},
]
}