1# Copyright (c) 2021-2024 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 16adapter_ble_inc = [ 17 "$dsoftbus_root_path/adapter/common/include", 18 "$dsoftbus_root_path/core/common/include", 19 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 20 "$dsoftbus_root_path/adapter/common/net/bluetooth/common", 21 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface", 22 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include", 23 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include", 24 "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/include", 25] 26adapter_ble_src = [ 27 "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_client.c", 28 "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_server.c", 29 "$dsoftbus_root_path/adapter/common/net/bluetooth/common/adapter_bt_utils.c", 30 "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c", 31 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_utils.c", 32 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/manager/src/softbus_broadcast_mgr.c", 33 "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/softbus_hidumper_bc_mgr.c", 34 "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/softbus_hidumper.c", 35] 36 37if (dsoftbus_feature_ex_kits) { 38 import( 39 "$dsoftbus_root_path/dsoftbus_enhance/adapter/common/net/bluetooth/broadcast/adapter/ble/adapter_ble_enhance.gni") 40 41 adapter_ble_inc += adapter_ble_enhance_inc 42 adapter_ble_src += adapter_ble_enhance_src 43} else { 44 adapter_ble_src += [ "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_gatt.c" ] 45} 46 47adapter_net_br_src = [ "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c" ] 48adapter_ble_external_deps = [ "bluetooth:btframework" ] 49if (defined(ohos_lite)) { 50 if (ohos_kernel_type == "liteos_m") { 51 adapter_ble_external_deps = [] 52 } 53} 54