• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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
16connection_service_sdk_src =
17    [ "$dsoftbus_root_path/sdk/connection/service/src/general_client_connection.c" ]
18connection_service_sdk_inc = [
19  "$dsoftbus_dfx_path/interface/include",
20  "$dsoftbus_root_path/core/frame/common/include",
21]
22
23connection_manager_sdk_src = []
24connection_manager_sdk_inc =
25    [ "$dsoftbus_root_path/sdk/connection/service/include" ]
26if (defined(ohos_lite)) {
27  if (ohos_kernel_type == "liteos_m") {
28    connection_manager_sdk_inc +=
29        [ "$dsoftbus_root_path/sdk/connection/ipc/include" ]
30    connection_manager_sdk_src += [
31      "$dsoftbus_root_path/sdk/connection/ipc/mini/general_connection_server_proxy.c",
32    ]
33  } else {
34    connection_manager_sdk_inc +=
35        [ "$dsoftbus_root_path/sdk/connection/ipc/include" ]
36    connection_manager_sdk_src += [
37      "$dsoftbus_root_path/sdk/connection/ipc/small/general_connection_server_proxy.c",
38    ]
39  }
40} else {
41  connection_manager_sdk_inc += [
42    "$dsoftbus_root_path/sdk/connection/ipc/include",
43    "$dsoftbus_root_path/sdk/connection/ipc/$os_type/include",
44    "$dsoftbus_root_path/core/common/include",
45    "$dsoftbus_root_path/core/frame/$os_type/init/include",
46    "$dsoftbus_root_path/interfaces/kits/connection",
47  ]
48  connection_manager_sdk_src += [
49    "$dsoftbus_root_path/sdk/connection/ipc/$os_type/src/general_connection_server_proxy.cpp",
50    "$dsoftbus_root_path/sdk/connection/ipc/$os_type/src/general_connection_server_proxy_standard.cpp",
51  ]
52}
53
54connection_sdk_src = connection_service_sdk_src + connection_manager_sdk_src
55connection_sdk_inc = connection_service_sdk_inc + connection_manager_sdk_inc
56