1# Copyright (c) 2020 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("//build/lite/config/component/lite_component.gni") 15 16sample_sources = [ "src/wpa_cli_sample.c" ] 17 18sample_include_dirs = [ 19 "//third_party/wpa_supplicant/wpa_supplicant-2.9/src/", 20 "//third_party/bounds_checking_function:libsec_shared/include/", 21] 22 23executable("wpa_cli_exe") { 24 output_name = "wpa_cli" 25 sources = sample_sources 26 include_dirs = sample_include_dirs 27 out_dir = rebase_path(root_build_dir) 28 deps = [ 29 "//third_party/bounds_checking_function:libsec_shared", 30 "//third_party/wpa_supplicant/wpa_supplicant-2.9:wpa_supplicant", 31 ] 32 ldflags = [ 33 "-L${out_dir}", 34 "-lwpa_client", 35 ] 36} 37 38group("wpa_cli_sample") { 39 deps = [ ":wpa_cli_exe" ] 40} 41