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. 13import( 14 "//foundation/communication/dsoftbus/adapter/common/net/bluetooth/net_bluetooth.gni") 15import("//foundation/communication/dsoftbus/dsoftbus.gni") 16 17br_adapter_src = 18 [ "$dsoftbus_root_path/core/adapter/br/mock/wrapper_br_interface.c" ] 19 20br_adapter_inc = [ "$dsoftbus_root_path/core/adapter/br/include" ] 21 22bus_center_core_adapter_src = [ 23 "$dsoftbus_root_path/core/adapter/bus_center/src/bus_center_adapter.c", 24 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_deviceinfo_to_profile_virtual.c", 25 "$dsoftbus_root_path/core/adapter/transmission/src/data_bus_native_virtual.c", 26 "$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c", 27] 28bus_center_core_adapter_inc = [ "$dsoftbus_root_path/adapter/common/include" ] 29bus_center_core_adapter_deps = [] 30bus_center_core_adapter_external_deps = [ "init:libbegetutil" ] 31 32if (defined(ohos_lite)) { 33 bus_center_core_adapter_src += [ 34 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp", 35 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp", 36 ] 37 bus_center_core_adapter_inc += [ 38 "$dsoftbus_root_path/core/adapter/bus_center/include", 39 "$dsoftbus_root_path/core/bus_center/utils/include", 40 "//base/startup/init/interfaces/innerkits/include/syspara", 41 ] 42 43 bus_center_core_adapter_deps += 44 [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] 45} else { 46 if (dsoftbus_get_devicename == false) { 47 bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp" ] 48 bus_center_core_adapter_inc += 49 [ "$dsoftbus_root_path/core/adapter/bus_center/include" ] 50 } else { 51 bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor.cpp" ] 52 53 bus_center_core_adapter_inc += [ 54 "$dsoftbus_root_path/adapter/common/bus_center/include", 55 "$dsoftbus_root_path/core/adapter/bus_center/include", 56 ] 57 58 bus_center_core_adapter_external_deps += [ 59 "ability_base:want", 60 "ability_base:zuri", 61 "ability_runtime:abilitykit_native", 62 "ability_runtime:dataobs_manager", 63 "data_share:datashare_common", 64 "data_share:datashare_consumer", 65 "relational_store:native_dataability", 66 "relational_store:native_rdb", 67 ] 68 } 69 if (softbus_os_account == true) { 70 bus_center_core_adapter_src += [ 71 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account.cpp", 72 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_adapter.cpp", 73 ] 74 bus_center_core_adapter_external_deps += [ 75 "os_account:libaccountkits", 76 "os_account:os_account_innerkits", 77 ] 78 } else { 79 bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp" ] 80 } 81} 82