• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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(
15    "//foundation/communication/dsoftbus/adapter/common/bus_center/bus_center_adapter.gni")
16import(
17    "//foundation/communication/dsoftbus/adapter/common/net/wifi/net_wifi.gni")
18import("//foundation/communication/dsoftbus/core/adapter/core_adapter.gni")
19import(
20    "//foundation/communication/dsoftbus/core/bus_center/lnn/disc_mgr/bus_center_disc_mgr.gni")
21import(
22    "//foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_hub.gni")
23import(
24    "//foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/net_builder.gni")
25import(
26    "//foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/net_manager.gni")
27import(
28    "//foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/net_ledger.gni")
29import(
30    "//foundation/communication/dsoftbus/core/bus_center/monitor/bus_center_monitor.gni")
31import(
32    "//foundation/communication/dsoftbus/core/bus_center/utils/bus_center_utils.gni")
33
34bus_center_server_src =
35    bus_center_adapter_src + bus_center_core_adapter_src +
36    bus_center_disc_mgr_src + bus_center_hub_src + bus_center_builder_src +
37    bus_center_net_mgr_src + bus_center_ledger_src + bus_center_monitor_src +
38    bus_center_utils_src + adapter_wifi_src
39bus_center_server_inc =
40    bus_center_adapter_inc + bus_center_core_adapter_inc +
41    bus_center_disc_mgr_inc + bus_center_hub_inc + bus_center_builder_inc +
42    bus_center_net_mgr_inc + bus_center_ledger_inc + bus_center_monitor_inc +
43    bus_center_utils_inc + adapter_wifi_inc
44bus_center_server_deps =
45    bus_center_adapter_deps + bus_center_core_adapter_deps +
46    bus_center_disc_mgr_deps + bus_center_hub_deps + bus_center_builder_deps +
47    bus_center_net_mgr_deps + bus_center_ledger_deps + bus_center_monitor_deps +
48    bus_center_utils_deps + adapter_wifi_deps
49
50bus_center_server_src +=
51    [ "$dsoftbus_root_path/core/bus_center/service/src/bus_center_manager.c" ]
52bus_center_server_src +=
53    [ "$dsoftbus_root_path/core/bus_center/service/src/bus_center_event.c" ]
54
55bus_center_server_inc += [
56  "$dsoftbus_root_path/core/bus_center/interface",
57  "$dsoftbus_root_path/core/bus_center/ipc/include",
58  "$dsoftbus_root_path/core/bus_center/service/include",
59  "$dsoftbus_root_path/sdk/bus_center/manager/include",
60]
61
62if (defined(ohos_lite)) {
63  if (ohos_kernel_type == "liteos_m") {
64    bus_center_server_src += [ "$dsoftbus_root_path/core/bus_center/ipc/mini_system/lnn_bus_center_ipc.c" ]
65  } else {
66    bus_center_server_src += [
67      "$dsoftbus_root_path/core/bus_center/ipc/small_system/src/bus_center_client_proxy.c",
68      "$dsoftbus_root_path/core/bus_center/ipc/small_system/src/lnn_bus_center_ipc.c",
69    ]
70    bus_center_server_inc +=
71        [ "$dsoftbus_root_path/core/bus_center/ipc/small_system/include" ]
72    bus_center_server_deps += [
73      "//build/lite/config/component/cJSON:cjson_shared",
74      "//foundation/communication/ipc_lite:liteipc_adapter",
75    ]
76  }
77} else {
78  bus_center_server_src += [
79    "$dsoftbus_root_path/core/bus_center/ipc/standard_system/src/bus_center_client_proxy.cpp",
80    "$dsoftbus_root_path/core/bus_center/ipc/standard_system/src/bus_center_client_proxy_standard.cpp",
81    "$dsoftbus_root_path/core/bus_center/ipc/standard_system/src/lnn_bus_center_ipc.cpp",
82  ]
83  bus_center_server_inc += [
84    "$dsoftbus_root_path/core/bus_center/ipc/standard_system/include",
85    "$dsoftbus_root_path/sdk/frame/standard/include",
86    "//utils/system/safwk/native/include",
87  ]
88  bus_center_server_deps += [ "//utils/native/base:utils" ]
89  bus_center_server_external_deps = bus_center_adapter_external_deps
90}
91