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("../../../../dsoftbus.gni") 15 16softbus_adapter_hdi_path = "$softbus_adapter_common/net/hdi" 17 18adapter_hdi_src = [] 19adapter_hdi_inc = [ "$softbus_adapter_hdi_path/include" ] 20adapter_hdi_external_deps = [] 21 22if (defined(ohos_lite) || (defined(global_parts_info) && !defined( 23 global_parts_info.hdf_drivers_interface_wlan))) { 24 if (dsoftbus_feature_lnn_net) { 25 adapter_hdi_src += [ 26 "$softbus_adapter_hdi_path/common/softbus_adapter_wlan_extend_virtual.c", 27 ] 28 } 29} else { 30 if (dsoftbus_feature_lnn_net) { 31 adapter_hdi_src += 32 [ "$softbus_adapter_hdi_path/common/softbus_adapter_wlan_extend.c" ] 33 34 adapter_hdi_external_deps += [ "drivers_interface_wlan:libwlan_proxy_1.1" ] 35 } 36} 37