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("../../../dsoftbus.gni") 15 16ble_discovery_inc = [ 17 "$dsoftbus_root_path/interfaces/kits/broadcast", 18 "$dsoftbus_root_path/interfaces/kits/disc", 19 "$dsoftbus_root_path/core/broadcast/common/include", 20 "$dsoftbus_root_path/core/discovery/ble/dispatcher/include", 21 "$dsoftbus_root_path/core/discovery/ble/approach_ble/include", 22 "$dsoftbus_root_path/core/discovery/ble/raise_ble/include", 23 "$dsoftbus_root_path/core/discovery/ble/share_ble/include", 24 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include", 25 "$dsoftbus_root_path/core/discovery/ble/touch_ble/include", 26 "$dsoftbus_root_path/core/discovery/ble/virtual_link_ble/include", 27 "$dsoftbus_root_path/core/discovery/common/include", 28 "$dsoftbus_root_path/core/common/include", 29] 30 31ble_discovery_deps = [] 32ble_discovery_src = [] 33if (dsoftbus_feature_deps_bluetooth) { 34 ble_discovery_deps += [ "$dsoftbus_dfx_path:softbus_dfx" ] 35} 36 37if (!dsoftbus_feature_inner_disc_ble) { 38 ble_discovery_src += [ "$dsoftbus_root_path/core/discovery/ble/dispatcher/src/disc_ble_dispatcher_virtual.c" ] 39} else { 40 ble_discovery_src += [ 41 "$dsoftbus_root_path/core/discovery/ble/dispatcher/src/disc_ble_dispatcher.c", 42 "$dsoftbus_root_path/core/discovery/ble/raise_ble/src/disc_raise_ble.c", 43 ] 44} 45 46if (dsoftbus_feature_disc_ble && dsoftbus_feature_inner_disc_ble) { 47 ble_discovery_src += [ 48 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble_utils.c", 49 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble.c", 50 ] 51} else { 52 ble_discovery_src += [ 53 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble_virtual.c", 54 ] 55} 56