blob: afda86a6b52ad619972f16cfba05567e5d207253 [file] [log] [blame]
# Copyright 2021 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/testing/cc_test_executable.gni")
config("wlan_common_config") {
include_dirs = [ "include" ]
}
source_set("common") {
sources = [
"channel.cc",
"energy.cc",
"ieee80211_codes.cc",
"include/wlan/common/action_frame.h",
"include/wlan/common/bitfield.h",
"include/wlan/common/buffer_reader.h",
"include/wlan/common/buffer_writer.h",
"include/wlan/common/channel.h",
"include/wlan/common/cipher.h",
"include/wlan/common/dispatcher.h",
"include/wlan/common/element.h",
"include/wlan/common/element_id.h",
"include/wlan/common/energy.h",
"include/wlan/common/ieee80211.h",
"include/wlan/common/ieee80211_codes.h",
"include/wlan/common/logging.h",
"include/wlan/common/mac_frame.h",
"include/wlan/common/macaddr.h",
"include/wlan/common/mcs_rate_lookup.h",
"include/wlan/common/phy.h",
"logging.cc",
"mac_frame.cc",
"macaddr.cc",
"mcs_rate_lookup.cc",
"phy.cc",
]
public_deps = [
"//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common_cpp",
"//sdk/fidl/fuchsia.wlan.ieee80211:fuchsia.wlan.ieee80211_hlcpp",
"//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme_hlcpp",
"//sdk/fidl/fuchsia.wlan.phyimpl:fuchsia.wlan.phyimpl_cpp",
"//sdk/fidl/fuchsia.wlan.stats:fuchsia.wlan.stats_hlcpp",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
]
public_configs = [ ":wlan_common_config" ]
configs += [ "//build/config/fuchsia:enable_zircon_asserts" ]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
cc_test_executable("mcs_rate_lookup_test") {
output_name = "mcs_rate_lookup_test"
testonly = true
sources = [ "mcs_rate_lookup_test.cc" ]
deps = [
":common",
"//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common_hlcpp",
"//src/lib/fxl/test:gtest_main",
]
}
fuchsia_unittest_package("mcs_rate_lookup_tests") {
package_name = "mcs-rate-lookup-tests"
deps = [ ":mcs_rate_lookup_test" ]
}
cc_test_executable("wlan_cpp_bitfield_test") {
output_name = "wlan_cpp_bitfield_test"
testonly = true
sources = [ "bitfield_test.cc" ]
deps = [
":common",
"//src/lib/fxl/test:gtest_main",
]
}
fuchsia_unittest_package("wlan_cpp_bitfield_tests") {
package_name = "wlan-cpp-bitfield-tests"
deps = [ ":wlan_cpp_bitfield_test" ]
}