1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15soong_namespace { 16 17} 18 19package { 20 default_applicable_licenses: [ 21 // Inherits SPDX-license-identifier-BSD-3-Clause 22 "external_wpa_supplicant_8_license", 23 ], 24} 25 26cc_defaults { 27 name: "lib_vendor_wpa_supplicant", 28 static_libs: select(soong_config_variable("wifi", "board_wlan_device"), { 29 "emulator": ["lib_driver_cmd_simulated_cf_bp"], 30 // TODO(b/295186835): Convert lib_driver_cmd_* to soong 31 default: ["lib_driver_cmd_fallback"], 32 }), 33} 34 35cc_binary { 36 name: "wpa_supplicant", 37 defaults: [ 38 "wpa_supplicant_defaults", 39 "lib_vendor_wpa_supplicant", 40 ], 41} 42 43cc_binary { 44 name: "hostapd", 45 defaults: [ 46 "hostapd_defaults", 47 "lib_vendor_wpa_supplicant", 48 ], 49} 50