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 = [ 21 "$dsoftbus_root_path/core/adapter/br/include", 22 "//foundation/communication/bluetooth/interfaces/innerkits/native_c/include", 23] 24 25 26bus_center_core_adapter_src = 27 [ "$dsoftbus_root_path/core/adapter/bus_center/src/bus_center_adapter.c" ] 28 29bus_center_core_adapter_inc = [ 30 "$dsoftbus_root_path/adapter/common/include", 31 "//base/startup/init/interfaces/innerkits/include/syspara", 32] 33 34bus_center_core_adapter_deps = 35 [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] 36 37if (defined(ohos_lite)) { 38 bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp" ] 39 40 bus_center_core_adapter_inc += [ 41 "$dsoftbus_root_path/core/adapter/bus_center/include", 42 "$dsoftbus_root_path/core/bus_center/utils/include", 43 ] 44 45 bus_center_core_adapter_deps += [] 46} else { 47 if (dsoftbus_get_devicename == false) { 48 bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp" ] 49 50 bus_center_core_adapter_inc += 51 [ "$dsoftbus_root_path/core/adapter/bus_center/include" ] 52 53 bus_center_core_adapter_deps += [] 54 } else { 55 bus_center_core_adapter_src += [ 56 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor.cpp", 57 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account.cpp", 58 ] 59 60 bus_center_core_adapter_inc += [ 61 "$dsoftbus_root_path/adapter/common/bus_center/include", 62 "$dsoftbus_root_path/core/adapter/bus_center/include", 63 "//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include", 64 "//foundation/distributeddatamgr/relational_store/interfaces/inner_api/dataability/include", 65 "//base/account/os_account/interfaces/innerkits/ohosaccount/native/include/", 66 ] 67 68 bus_center_core_adapter_deps += [ 69 "${ability_base_path}:want", 70 "${ability_base_path}:zuri", 71 "${ability_runtime_inner_api_path}/dataobs_manager:dataobs_manager", 72 "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native", 73 "//base/account/os_account/frameworks/ohosaccount/native:libaccountkits", 74 "//base/account/os_account/frameworks/osaccount/native:os_account_innerkits", 75 "//foundation/distributeddatamgr/data_share/interfaces/inner_api:datashare_consumer", 76 "//foundation/distributeddatamgr/data_share/interfaces/inner_api/common:datashare_common", 77 "//foundation/distributeddatamgr/relational_store/interfaces/inner_api/dataability:native_dataability", 78 "//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb:native_rdb", 79 ] 80 } 81} 82