1# Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved. 2 3import("//build/lite/config/component/lite_component.gni") 4import("//build/lite/ndk/ndk.gni") 5 6build_ext_component("wpa_supplicant-2.9") { 7 clang_dir = "//" 8 if (ohos_build_compiler_dir != "") { 9 clang_dir = rebase_path("${ohos_build_compiler_dir}") 10 } 11 outdir = rebase_path("$root_out_dir") 12 sysroot_path = rebase_path(ohos_current_sysroot) 13 arch_cflags = string_join(" ", target_arch_cflags) 14 arch_cflags += " --target=$target_triple" 15 command = "sh build.sh ${outdir} ${ohos_build_compiler} ${ohos_build_ndk} ${ohos_build_type} ${clang_dir} ${ohos_kernel_type} ${sysroot_path} \"${arch_cflags}\"" 16 exec_path = rebase_path(".", root_build_dir) 17 deps = [ "//drivers/peripheral/wlan/client:wifi_driver_client" ] 18} 19 20lite_component("wpa_supplicant") { 21 deps = [ ":wpa_supplicant-2.9" ] 22 features = [] 23} 24