blob: 464ccecf33d248b482f1ba5b599f109b28c1d421 [file] [log] [blame]
# Copyright 2019 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/rust/rustc_library.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
declare_args() {
# Enable WEP support.
# Use temporarily for testing driver WEP support.
# This build flag will be replaced by providing
# dedicated WEP specific WLAN targets which products
# can depend on.
support_insecure_wep = false
}
rustc_library("wep_deprecated") {
name = "wep_deprecated"
version = "0.1.0"
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc",
"//sdk/fidl/fuchsia.wlan.mlme:fuchsia.wlan.mlme-rustc",
"//src/connectivity/wlan/lib/common/rust:wlan-common",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:hex",
]
if (support_insecure_wep) {
features = [ "wep_enabled" ]
}
}
unittest_package("wep-deprecated-tests") {
deps = [
":wep_deprecated",
]
tests = [
{
name = "wep_deprecated_lib_test"
environments = basic_envs
},
]
}