1060ff233Sopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
2060ff233Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3060ff233Sopenharmony_ci# you may not use this file except in compliance with the License.
4060ff233Sopenharmony_ci# You may obtain a copy of the License at
5060ff233Sopenharmony_ci#
6060ff233Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7060ff233Sopenharmony_ci#
8060ff233Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9060ff233Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10060ff233Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11060ff233Sopenharmony_ci# See the License for the specific language governing permissions and
12060ff233Sopenharmony_ci# limitations under the License.
13060ff233Sopenharmony_ci
14060ff233Sopenharmony_ciimport("../../../../dsoftbus.gni")
15060ff233Sopenharmony_ci
16060ff233Sopenharmony_ciadapter_ble_inc = [
17060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/include",
18060ff233Sopenharmony_ci  "$dsoftbus_root_path/core/common/include",
19060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
20060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/common",
21060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface",
22060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include",
23060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include",
24060ff233Sopenharmony_ci  "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/include",
25060ff233Sopenharmony_ci]
26060ff233Sopenharmony_ciadapter_ble_src = [
27060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_client.c",
28060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_server.c",
29060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/common/adapter_bt_utils.c",
30060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c",
31060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_utils.c",
32060ff233Sopenharmony_ci  "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/manager/src/softbus_broadcast_mgr.c",
33060ff233Sopenharmony_ci  "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/softbus_hidumper_bc_mgr.c",
34060ff233Sopenharmony_ci  "$dsoftbus_root_path/core/common/dfx/hidumper_adapter/softbus_hidumper.c",
35060ff233Sopenharmony_ci]
36060ff233Sopenharmony_ci
37060ff233Sopenharmony_ciif (dsoftbus_feature_ex_kits) {
38060ff233Sopenharmony_ci  import(
39060ff233Sopenharmony_ci      "$dsoftbus_root_path/dsoftbus_enhance/adapter/common/net/bluetooth/broadcast/adapter/ble/adapter_ble_enhance.gni")
40060ff233Sopenharmony_ci
41060ff233Sopenharmony_ci  adapter_ble_inc += adapter_ble_enhance_inc
42060ff233Sopenharmony_ci  adapter_ble_src += adapter_ble_enhance_src
43060ff233Sopenharmony_ci} else {
44060ff233Sopenharmony_ci  adapter_ble_src += [ "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_gatt.c" ]
45060ff233Sopenharmony_ci}
46060ff233Sopenharmony_ci
47060ff233Sopenharmony_ciadapter_net_br_src = [ "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c" ]
48060ff233Sopenharmony_ciadapter_ble_external_deps = [ "bluetooth:btframework" ]
49060ff233Sopenharmony_ciif (defined(ohos_lite)) {
50060ff233Sopenharmony_ci  if (ohos_kernel_type == "liteos_m") {
51060ff233Sopenharmony_ci    adapter_ble_external_deps = []
52060ff233Sopenharmony_ci  }
53060ff233Sopenharmony_ci}
54