# Copyright (c) 2021-2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("../../../../dsoftbus.gni") adapter_ble_inc = [ "$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/common", "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface", "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include", "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/include", ] adapter_ble_src = [ "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_client.c", "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_server.c", "$dsoftbus_root_path/adapter/common/net/bluetooth/common/adapter_bt_utils.c", "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c", "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_utils.c", "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/manager/src/softbus_broadcast_mgr.c", "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/softbus_hidumper_bc_mgr.c", "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/softbus_hidumper.c", ] if (dsoftbus_feature_ex_kits) { import( "$dsoftbus_root_path/dsoftbus_enhance/adapter/common/net/bluetooth/broadcast/adapter/ble/adapter_ble_enhance.gni") adapter_ble_inc += adapter_ble_enhance_inc adapter_ble_src += adapter_ble_enhance_src } else { adapter_ble_src += [ "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_gatt.c" ] } adapter_net_br_src = [ "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c" ] adapter_ble_external_deps = [ "bluetooth:btframework" ] if (defined(ohos_lite)) { if (ohos_kernel_type == "liteos_m") { adapter_ble_external_deps = [] } }