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_standard_feature_conn_ble == false) { 20 ble_connection_src = [ "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_connection_virtual.c" ] 21 ble_connection_inc = [ "$dsoftbus_root_path/core/connection/ble/include" ] 22 if (dsoftbus_standard_feature_conn_br == true) { 23 ble_connection_src += adapter_net_br_src 24 ble_connection_inc += adapter_ble_inc 25 ble_connection_deps += adapter_ble_deps 26 } 27} else { 28 ble_connection_src = [ 29 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_connection.c", 30 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_gatt_client.c", 31 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_gatt_server.c", 32 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_queue.c", 33 "$dsoftbus_root_path/core/connection/ble/src/softbus_ble_trans_manager.c", 34 ] 35 ble_connection_inc = [ 36 "$dsoftbus_root_path/core/connection/ble/include", 37 "$dsoftbus_root_path/core/connection/ble/src", 38 ] 39 ble_connection_src += adapter_ble_src 40 ble_connection_inc += adapter_ble_inc 41 ble_connection_deps += adapter_ble_deps 42} 43