1# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa.gni") 15 16declare_args() { 17 wpa_vendor_gni = "//vendor/huawei/foundation/communication/wpa_supplicant_ext/wpa_vendor_ext.gni" 18} 19 20ext_cflags = [] 21 22if (wpa_supplicant_vendor_ext && wpa_vendor_gni != "") { 23 import(wpa_vendor_gni) 24 25 ext_cflags += [ 26 "-DCONFIG_HILINK_OKC_STA", 27 "-DCONFIG_VENDOR_EXT", 28 "-DCONFIG_WIFI_RPT", 29 "-DCONFIG_OPEN_HARMONY_P2P_DEV_NOTIFY", 30 "-DCONFIG_OPEN_HARMONY_MIRACAST_MAC", 31 "-DCONFIG_OPEN_HARMONY_SPECIFIC_P2P_FIND", 32 "-DCONFIG_OPEN_HARMONY_P2P_DFH_CONNECT", 33 "-DCONFIG_P2P_OPT", 34 "-DCONFIG_MIRACAST_SOURCE_OPT", 35 "-DHARMONY_CONNECTIVITY_PATCH", 36 "-DHARMONY_P2P_CONNECTIVITY_PATCH", 37 "-DOPEN_HARMONY_P2P_ONEHOP_FIND", 38 ] 39 40 if (wpa_supplicant_wapi) { 41 ext_cflags += [ 42 "-DCONFIG_WAPI", 43 "-DLE", 44 ] 45 } 46 if (defined(global_parts_info.hiviewdfx_hisysevent)) { 47 ext_cflags += [ "-DHISYSEVENT_EXIST" ] 48 } 49} 50