1# Copyright (c) 2021-2023 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("../../adapter/common/bus_center/bus_center_adapter.gni") 15import("../../adapter/common/net/bluetooth/net_bluetooth.gni") 16import("../../adapter/common/net/hdi/net_hdi.gni") 17import("../../adapter/common/net/wifi/net_wifi.gni") 18import("../../core/adapter/core_adapter.gni") 19import("../../core/bus_center/lnn/disc_mgr/bus_center_disc_mgr.gni") 20import("../../core/bus_center/lnn/lane_hub/lane_hub.gni") 21import("../../core/bus_center/lnn/net_builder/net_builder.gni") 22import("../../core/bus_center/lnn/net_buscenter/net_manager.gni") 23import("../../core/bus_center/lnn/net_ledger/net_ledger.gni") 24import("../../core/bus_center/monitor/bus_center_monitor.gni") 25import("../../core/bus_center/utils/bus_center_utils.gni") 26 27bus_center_server_src = 28 bus_center_adapter_src + bus_center_core_adapter_src + 29 bus_center_disc_mgr_src + bus_center_hub_src + bus_center_builder_src + 30 bus_center_net_mgr_src + bus_center_ledger_src + bus_center_monitor_src + 31 bus_center_utils_src + adapter_wifi_src + adapter_hdi_src 32bus_center_server_inc = 33 bus_center_adapter_inc + bus_center_core_adapter_inc + 34 bus_center_disc_mgr_inc + bus_center_hub_inc + bus_center_builder_inc + 35 bus_center_net_mgr_inc + bus_center_ledger_inc + bus_center_monitor_inc + 36 bus_center_utils_inc + adapter_wifi_inc + adapter_hdi_inc 37bus_center_server_deps = 38 bus_center_adapter_deps + bus_center_core_adapter_deps + 39 bus_center_disc_mgr_deps + bus_center_hub_deps + bus_center_builder_deps + 40 bus_center_net_mgr_deps + bus_center_ledger_deps + bus_center_monitor_deps + 41 bus_center_utils_deps 42 43bus_center_server_src += [ 44 "$dsoftbus_root_path/core/bus_center/service/src/bus_center_manager.c", 45 "$dsoftbus_root_path/core/bus_center/service/src/bus_center_event.c", 46 "$dsoftbus_root_path/core/bus_center/service/src/bus_center_decision_center.c", 47] 48 49bus_center_server_inc += [ 50 "$dsoftbus_root_path/interfaces/kits/bus_center", 51 "$dsoftbus_root_path/core/bus_center/interface", 52 "$dsoftbus_root_path/core/bus_center/ipc/include", 53 "$dsoftbus_root_path/core/bus_center/service/include", 54 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 55 "$dsoftbus_root_path/sdk/bus_center/manager/include", 56] 57 58bus_center_server_external_deps = [] 59 60if (defined(global_parts_info) && defined(global_parts_info.hicollie)) { 61 bus_center_server_src += 62 [ "$dsoftbus_dfx_path/watchdog/legacy/softbus_adapter_xcollie.cpp" ] 63 bus_center_server_external_deps += [ "hicollie:libhicollie" ] 64} else { 65 bus_center_server_src += [ 66 "$dsoftbus_dfx_path/watchdog/legacy/softbus_adapter_xcollie_virtual.cpp", 67 ] 68} 69 70if (defined(ohos_lite)) { 71 if (ohos_kernel_type == "liteos_m") { 72 bus_center_server_src += 73 [ "$dsoftbus_root_path/core/bus_center/ipc/mini/lnn_bus_center_ipc.c" ] 74 } else { 75 bus_center_server_src += [ 76 "$dsoftbus_root_path/core/bus_center/ipc/small/src/bus_center_client_proxy.c", 77 "$dsoftbus_root_path/core/bus_center/ipc/small/src/lnn_bus_center_ipc.c", 78 ] 79 bus_center_server_inc += 80 [ "$dsoftbus_root_path/core/bus_center/ipc/small/include" ] 81 bus_center_server_deps += [ 82 "//build/lite/config/component/cJSON:cjson_shared", 83 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 84 ] 85 } 86} else { 87 bus_center_server_src += [ 88 "$dsoftbus_root_path/core/bus_center/ipc/$os_type/src/bus_center_client_proxy.cpp", 89 "$dsoftbus_root_path/core/bus_center/ipc/$os_type/src/bus_center_client_proxy_standard.cpp", 90 "$dsoftbus_root_path/core/bus_center/ipc/$os_type/src/lnn_bus_center_ipc.cpp", 91 ] 92 bus_center_server_inc += [ 93 "$dsoftbus_root_path/core/bus_center/ipc/$os_type/include", 94 "$dsoftbus_root_path/sdk/frame/$os_type/include", 95 ] 96 97 bus_center_server_inc += 98 [ 99 "$dsoftbus_root_path/core/bus_center/extend/include", 100 "$dsoftbus_root_path/interfaces/kits/bus_center/enhance", 101 ] 102 bus_center_server_src += [ 103 "$dsoftbus_root_path/core/bus_center/extend/src/bus_center_ex_obj_stub.cpp", 104 "$dsoftbus_root_path/core/bus_center/extend/src/bus_center_ex_obj.cpp", 105 ] 106 107 bus_center_server_external_deps += 108 bus_center_adapter_external_deps + bus_center_ledger_external_deps + 109 bus_center_core_adapter_external_deps + adapter_wifi_external_deps + 110 adapter_hdi_external_deps 111 bus_center_server_external_deps += [ "c_utils:utils" ] 112}