1060ff233Sopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd. 2060ff233Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3060ff233Sopenharmony_ci# you may not use this file except in compliance with the License. 4060ff233Sopenharmony_ci# You may obtain a copy of the License at 5060ff233Sopenharmony_ci# 6060ff233Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7060ff233Sopenharmony_ci# 8060ff233Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9060ff233Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10060ff233Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11060ff233Sopenharmony_ci# See the License for the specific language governing permissions and 12060ff233Sopenharmony_ci# limitations under the License. 13060ff233Sopenharmony_ci 14060ff233Sopenharmony_ciimport("../../core/common/dfx/dsoftbus_dfx.gni") 15060ff233Sopenharmony_ciimport("../../dsoftbus.gni") 16060ff233Sopenharmony_ci 17060ff233Sopenharmony_cibus_center_service_sdk_src = 18060ff233Sopenharmony_ci [ "$dsoftbus_root_path/sdk/bus_center/service/src/client_bus_center.c" ] 19060ff233Sopenharmony_cibus_center_service_sdk_inc = [ 20060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/service/include", 21060ff233Sopenharmony_ci "$dsoftbus_root_path/core/common/dfx/interface/include", 22060ff233Sopenharmony_ci] 23060ff233Sopenharmony_ci 24060ff233Sopenharmony_cibus_center_manager_sdk_src = [] 25060ff233Sopenharmony_cibus_center_manager_sdk_inc = 26060ff233Sopenharmony_ci [ "$dsoftbus_root_path/sdk/bus_center/manager/include" ] 27060ff233Sopenharmony_cibus_center_manager_sdk_deps = [] 28060ff233Sopenharmony_ciif (defined(ohos_lite)) { 29060ff233Sopenharmony_ci if (ohos_kernel_type == "liteos_m") { 30060ff233Sopenharmony_ci bus_center_manager_sdk_inc += [ 31060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/include", 32060ff233Sopenharmony_ci "$dsoftbus_root_path/core/adapter/kernel/include", 33060ff233Sopenharmony_ci "$dsoftbus_root_path/core/bus_center/interface", 34060ff233Sopenharmony_ci "$dsoftbus_root_path/core/bus_center/ipc/include", 35060ff233Sopenharmony_ci ] 36060ff233Sopenharmony_ci bus_center_manager_sdk_src += [ 37060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/mini/bus_center_server_proxy.c", 38060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c", 39060ff233Sopenharmony_ci ] 40060ff233Sopenharmony_ci } else { 41060ff233Sopenharmony_ci bus_center_manager_sdk_inc += [ 42060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/include", 43060ff233Sopenharmony_ci "$dsoftbus_root_path/core/bus_center/interface", 44060ff233Sopenharmony_ci "$dsoftbus_root_path/core/common/include", 45060ff233Sopenharmony_ci ] 46060ff233Sopenharmony_ci bus_center_manager_sdk_src += [ 47060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/small/bus_center_server_proxy.c", 48060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c", 49060ff233Sopenharmony_ci ] 50060ff233Sopenharmony_ci bus_center_manager_sdk_deps += [ 51060ff233Sopenharmony_ci "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 52060ff233Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 53060ff233Sopenharmony_ci ] 54060ff233Sopenharmony_ci } 55060ff233Sopenharmony_ci} else { 56060ff233Sopenharmony_ci bus_center_manager_sdk_inc += [ 57060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/include", 58060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/include", 59060ff233Sopenharmony_ci "$dsoftbus_root_path/core/bus_center/interface", 60060ff233Sopenharmony_ci "$dsoftbus_root_path/core/common/include", 61060ff233Sopenharmony_ci "$dsoftbus_root_path/core/frame/$os_type/init/include", 62060ff233Sopenharmony_ci "$dsoftbus_root_path/core/transmission/common/include", 63060ff233Sopenharmony_ci "$dsoftbus_root_path/interfaces/inner_kits/lnn", 64060ff233Sopenharmony_ci "$dsoftbus_root_path/interfaces/kits/discovery", 65060ff233Sopenharmony_ci "$dsoftbus_root_path/interfaces/kits/transport", 66060ff233Sopenharmony_ci ] 67060ff233Sopenharmony_ci bus_center_manager_sdk_src += [ 68060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy.cpp", 69060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy_standard.cpp", 70060ff233Sopenharmony_ci "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c", 71060ff233Sopenharmony_ci ] 72060ff233Sopenharmony_ci 73060ff233Sopenharmony_ci if (dsoftbus_feature_ex_kits) { 74060ff233Sopenharmony_ci import( 75060ff233Sopenharmony_ci "$dsoftbus_root_path/dsoftbus_enhance/sdk/bus_center/extend/bus_center_ex_sdk.gni") 76060ff233Sopenharmony_ci 77060ff233Sopenharmony_ci bus_center_manager_sdk_inc += bus_center_ex_sdk_inc 78060ff233Sopenharmony_ci bus_center_manager_sdk_src += bus_center_ex_sdk_src 79060ff233Sopenharmony_ci } else { 80060ff233Sopenharmony_ci bus_center_manager_sdk_inc += 81060ff233Sopenharmony_ci [ "$dsoftbus_root_path/core/bus_center/extend/include" ] 82060ff233Sopenharmony_ci bus_center_manager_sdk_src += [ "$dsoftbus_root_path/core/bus_center/extend/src/bus_center_ex_obj_proxy.cpp" ] 83060ff233Sopenharmony_ci bus_center_manager_sdk_src += [ "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy_virtual.cpp" ] 84060ff233Sopenharmony_ci bus_center_manager_sdk_src += [ "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_policy_virtual.c" ] 85060ff233Sopenharmony_ci } 86060ff233Sopenharmony_ci} 87060ff233Sopenharmony_ci 88060ff233Sopenharmony_cibus_center_sdk_src = bus_center_service_sdk_src + bus_center_manager_sdk_src 89060ff233Sopenharmony_cibus_center_sdk_inc = bus_center_service_sdk_inc + bus_center_manager_sdk_inc 90060ff233Sopenharmony_cibus_center_sdk_deps = bus_center_manager_sdk_deps 91