• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2024 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("../../dsoftbus.gni")
15
16bus_center_service_sdk_src =
17    [ "$dsoftbus_root_path/sdk/bus_center/service/src/client_bus_center.c" ]
18bus_center_service_sdk_inc = [
19  "$dsoftbus_root_path/sdk/bus_center/service/include",
20  "$dsoftbus_dfx_path/interface/include",
21  "$dsoftbus_root_path/core/frame/common/include",
22]
23
24bus_center_manager_sdk_src = []
25bus_center_manager_sdk_inc =
26    [ "$dsoftbus_root_path/sdk/bus_center/manager/include" ]
27bus_center_manager_sdk_deps = []
28if (defined(ohos_lite)) {
29  if (ohos_kernel_type == "liteos_m") {
30    bus_center_manager_sdk_inc += [
31      "$dsoftbus_root_path/sdk/bus_center/ipc/include",
32      "$dsoftbus_root_path/core/adapter/kernel/include",
33      "$dsoftbus_root_path/interfaces/kits/bus_center",
34      "$dsoftbus_root_path/core/bus_center/interface",
35      "$dsoftbus_root_path/core/bus_center/ipc/include",
36    ]
37    bus_center_manager_sdk_src += [
38      "$dsoftbus_root_path/sdk/bus_center/ipc/mini/bus_center_server_proxy.c",
39      "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c",
40      "$dsoftbus_root_path/sdk/bus_center/manager/src/softbus_client_init.c",
41    ]
42    bus_center_manager_sdk_inc += [
43      "$dsoftbus_root_path/core/bus_center/extend/include",
44      "$dsoftbus_root_path/interfaces/kits/bus_center/enhance",
45      "$dsoftbus_root_path/sdk/bus_center/interface/common",
46      "$dsoftbus_root_path/core/frame/common/include",
47      "$dsoftbus_root_path/components/nstackx/fillp/include",
48    ]
49  } else {
50    bus_center_manager_sdk_inc += [
51      "$dsoftbus_root_path/sdk/bus_center/ipc/include",
52      "$dsoftbus_root_path/interfaces/kits/bus_center",
53      "$dsoftbus_root_path/core/bus_center/interface",
54      "$dsoftbus_root_path/core/common/include",
55      "$dsoftbus_root_path/sdk/bus_center/interface/common",
56      "$dsoftbus_root_path/core/frame/common/include",
57    ]
58    bus_center_manager_sdk_src += [
59      "$dsoftbus_root_path/sdk/bus_center/ipc/small/bus_center_server_proxy.c",
60      "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c",
61      "$dsoftbus_root_path/sdk/bus_center/manager/src/softbus_client_init.c",
62    ]
63    bus_center_manager_sdk_deps += [
64      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
65      "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
66    ]
67    bus_center_manager_sdk_inc += [
68      "$dsoftbus_root_path/core/bus_center/extend/include",
69      "$dsoftbus_root_path/interfaces/kits/bus_center/enhance",
70      "$dsoftbus_root_path/sdk/bus_center/interface/common",
71      "$dsoftbus_root_path/core/frame/common/include",
72      "$dsoftbus_root_path/components/nstackx/fillp/include",
73    ]
74  }
75} else {
76  bus_center_manager_sdk_inc += [
77    "$dsoftbus_root_path/sdk/bus_center/ipc/include",
78    "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/include",
79    "$dsoftbus_root_path/interfaces/kits/bus_center",
80    "$dsoftbus_root_path/core/bus_center/interface",
81    "$dsoftbus_root_path/core/common/include",
82    "$dsoftbus_root_path/core/frame/$os_type/init/include",
83    "$dsoftbus_root_path/core/transmission/common/include",
84    "$dsoftbus_root_path/interfaces/inner_kits/lnn",
85    "$dsoftbus_root_path/interfaces/kits/discovery",
86    "$dsoftbus_root_path/interfaces/kits/transport",
87    "$dsoftbus_root_path/sdk/bus_center/interface/common",
88    "$dsoftbus_root_path/core/frame/common/include",
89  ]
90  bus_center_manager_sdk_src += [
91    "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy.cpp",
92    "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy_standard.cpp",
93    "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c",
94    "$dsoftbus_root_path/sdk/bus_center/manager/src/softbus_client_init.c",
95    "$dsoftbus_root_path/core/frame/common/src/softbus_init_common.c",
96  ]
97
98  bus_center_manager_sdk_inc +=
99  [
100    "$dsoftbus_root_path/core/bus_center/extend/include",
101    "$dsoftbus_root_path/interfaces/kits/bus_center/enhance",
102  ]
103  bus_center_manager_sdk_src += [ "$dsoftbus_root_path/core/bus_center/extend/src/bus_center_ex_obj_proxy.cpp" ]
104}
105
106bus_center_sdk_src = bus_center_service_sdk_src + bus_center_manager_sdk_src
107bus_center_sdk_inc = bus_center_service_sdk_inc + bus_center_manager_sdk_inc
108bus_center_sdk_deps = bus_center_manager_sdk_deps
109