• 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("//foundation/communication/dsoftbus/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
21bus_center_manager_sdk_src = []
22bus_center_manager_sdk_inc =
23    [ "$dsoftbus_root_path/sdk/bus_center/manager/include" ]
24bus_center_manager_sdk_deps = []
25if (defined(ohos_lite)) {
26  if (ohos_kernel_type == "liteos_m") {
27    bus_center_manager_sdk_inc += [
28      "$dsoftbus_root_path/sdk/bus_center/ipc/include",
29      "$dsoftbus_root_path/core/adapter/kernel/include",
30      "$dsoftbus_root_path/core/bus_center/interface",
31      "$dsoftbus_root_path/core/bus_center/ipc/include",
32    ]
33    bus_center_manager_sdk_src += [
34      "$dsoftbus_root_path/sdk/bus_center/ipc/mini/bus_center_server_proxy.c",
35      "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c",
36    ]
37  } else {
38    bus_center_manager_sdk_inc += [
39      "$dsoftbus_root_path/sdk/bus_center/ipc/include",
40      "$dsoftbus_root_path/core/bus_center/interface",
41    ]
42    bus_center_manager_sdk_src += [
43      "$dsoftbus_root_path/sdk/bus_center/ipc/small/bus_center_server_proxy.c",
44      "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c",
45    ]
46    bus_center_manager_sdk_deps += [
47      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
48      "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
49    ]
50  }
51} else {
52  bus_center_manager_sdk_inc += [
53    "$dsoftbus_root_path/sdk/bus_center/ipc/include",
54    "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/include",
55    "$dsoftbus_root_path/core/bus_center/interface",
56    "$dsoftbus_root_path/core/frame/$os_type/init/include",
57    "$dsoftbus_root_path/core/transmission/common/include",
58    "$dsoftbus_root_path/interfaces/kits/discovery",
59    "$dsoftbus_root_path/interfaces/kits/transport",
60    "//utils/system/safwk/native/include",
61  ]
62  bus_center_manager_sdk_src += [
63    "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy.cpp",
64    "$dsoftbus_root_path/sdk/bus_center/ipc/$os_type/src/bus_center_server_proxy_standard.cpp",
65    "$dsoftbus_root_path/sdk/bus_center/manager/src/client_bus_center_manager.c",
66  ]
67}
68
69bus_center_sdk_src = bus_center_service_sdk_src + bus_center_manager_sdk_src
70bus_center_sdk_inc = bus_center_service_sdk_inc + bus_center_manager_sdk_inc
71bus_center_sdk_deps = bus_center_manager_sdk_deps
72