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/broadcast/common/include", 25 "$dsoftbus_root_path/dfx/event/src", 26] 27adapter_ble_src = [ 28 "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_client.c", 29 "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_server.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/adapter/common/net/bluetooth/broadcast/manager/src/softbus_broadcast_mgr_utils.c", 34 "$dsoftbus_dfx_path/dumper/legacy/softbus_hidumper_bc_mgr.c", 35 "$dsoftbus_dfx_path/dumper/legacy/softbus_hidumper.c", 36] 37 38if (dsoftbus_feature_ex_kits) { 39 import( 40 "$dsoftbus_root_path/dsoftbus_enhance/adapter/common/net/bluetooth/broadcast/adapter/ble/adapter_ble_enhance.gni") 41 42 adapter_ble_inc += adapter_ble_enhance_inc 43 adapter_ble_src += adapter_ble_enhance_src 44} else { 45 adapter_ble_src += [ "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_gatt.c" ] 46} 47 48adapter_net_br_src = [ "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c" ] 49adapter_ble_external_deps = [ "bluetooth:btframework" ] 50if (defined(ohos_lite)) { 51 if (ohos_kernel_type == "liteos_m") { 52 adapter_ble_external_deps = [] 53 } 54} 55