1# Copyright (c) 2021 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( 15 "//foundation/communication/dsoftbus/adapter/common/net/bluetooth/net_bluetooth.gni") 16import("//foundation/communication/dsoftbus/dsoftbus.gni") 17 18ble_connection_deps = [] 19if (dsoftbus_feature_conn_ble == false) { 20 ble_connection_src = [ "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_connection_virtual.c" ] 21 ble_connection_inc = [ 22 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 23 "$dsoftbus_root_path/core/connection/ble/include", 24 "$dsoftbus_root_path/core/common/include", 25 ] 26 if (dsoftbus_feature_conn_br == true) { 27 ble_connection_src += adapter_net_br_src 28 ble_connection_inc += adapter_ble_inc 29 ble_connection_deps += adapter_ble_deps 30 } 31} else { 32 ble_connection_src = [ 33 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_connection.c", 34 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_gatt_client.c", 35 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_gatt_server.c", 36 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_queue.c", 37 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_trans_manager.c", 38 ] 39 ble_connection_inc = [ 40 "$dsoftbus_root_path/core/connection/ble/include", 41 "$dsoftbus_root_path/core/connection/ble/src", 42 "$dsoftbus_root_path/core/common/include", 43 ] 44 ble_connection_src += adapter_ble_src 45 ble_connection_inc += adapter_ble_inc 46 ble_connection_deps += adapter_ble_deps 47} 48