1# Copyright (c) 2022 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/ohos.gni") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17ohos_shared_library("libwlan_service_extend") { 18 include_dirs = [ 19 "//drivers/peripheral/wlan/interfaces/include", 20 "//drivers/peripheral/wlan/client/include", 21 "//drivers/peripheral/wlan/hal/include", 22 "//drivers/peripheral/wlan/hdi_service/service_common", 23 "//drivers/peripheral/wlan/hdi_service/service_extend", 24 ] 25 sources = [ "wlan_extend_cmd.c" ] 26 27 deps = [ 28 "//drivers/interface/wlan/v1_0:wlan_idl_headers", 29 "//drivers/peripheral/wlan/hal:wifi_hal", 30 ] 31 32 defines = [ "__OHOS__USER__" ] 33 34 cflags = [ 35 "-Wall", 36 "-Wextra", 37 "-Werror", 38 "-fsigned-char", 39 "-fno-common", 40 "-fno-strict-aliasing", 41 "-fstack-protector-all", 42 ] 43 44 if (is_standard_system) { 45 external_deps = [ 46 "c_utils:utils", 47 "hdf_core:libhdf_host", 48 "hiviewdfx_hilog_native:libhilog", 49 ] 50 } else { 51 external_deps = [ "hilog:libhilog" ] 52 } 53 54 install_images = [ chipset_base_dir ] 55 subsystem_name = "hdf" 56 part_name = "drivers_peripheral_wlan" 57} 58