• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_OPEN_HARMONY_P2P_DEV_NOTIFY",
29    "-DCONFIG_OPEN_HARMONY_MIRACAST_MAC",
30    "-DCONFIG_OPEN_HARMONY_SPECIFIC_P2P_FIND",
31    "-DCONFIG_OPEN_HARMONY_P2P_DFH_CONNECT",
32    "-DCONFIG_P2P_OPT",
33    "-DCONFIG_MIRACAST_SOURCE_OPT",
34    "-DHARMONY_CONNECTIVITY_PATCH",
35    "-DHARMONY_P2P_CONNECTIVITY_PATCH",
36    "-DOPEN_HARMONY_P2P_ONEHOP_FIND",
37  ]
38
39  if (wpa_supplicant_wapi) {
40    ext_cflags += [
41      "-DCONFIG_WAPI",
42      "-DLE",
43    ]
44  }
45  if (defined(global_parts_info.hiviewdfx_hisysevent)) {
46    ext_cflags += [ "-DHISYSEVENT_EXIST" ]
47  }
48}
49