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