• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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")
15import("$dsoftbus_root_path/br_proxy/br_proxy.gni")
16
17trans_session_sdk_src = [
18  "$dsoftbus_sdk_path/transmission/session/src/client_trans_session_callback.c",
19  "$dsoftbus_sdk_path/transmission/session/src/client_trans_session_manager.c",
20  "$dsoftbus_sdk_path/transmission/session/src/client_trans_message_service.c",
21  "$dsoftbus_sdk_path/transmission/session/src/client_trans_session_service.c",
22  "$dsoftbus_sdk_path/transmission/session/src/client_trans_socket_service.c",
23  "$dsoftbus_sdk_path/transmission/session/src/client_trans_socket_manager.c",
24  "$dsoftbus_sdk_path/transmission/session/src/client_trans_socket_option.c",
25]
26
27if (defined(ohos_lite)) {
28  trans_session_sdk_inc = [
29    "$dsoftbus_sdk_path/transmission/session/include",
30    "$dsoftbus_root_path/interfaces/inner_kits/transport",
31    "$dsoftbus_root_path/sdk/transmission/trans_channel/statistics/include",
32    "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include",
33    "//third_party/cJSON",
34    "$dsoftbus_root_path/components/nstackx/nstackx_core/dfile/interfaces",
35  ]
36  trans_session_sdk_src += [
37    "$dsoftbus_sdk_path/transmission/session/cpp/src/session_ipc_adapter_virtual.c",
38    "$dsoftbus_sdk_path/transmission/session/cpp/src/session_set_timer_virtual.c",
39  ]
40} else {
41  trans_session_sdk_inc = [
42    "$dsoftbus_sdk_path/transmission/session/include",
43    "$dsoftbus_sdk_path/transmission/session/cpp/include",
44    "$dsoftbus_sdk_path/transmission/session/cpp/src",
45    "$dsoftbus_root_path/interfaces/inner_kits/transport",
46    "$dsoftbus_root_path/sdk/transmission/trans_channel/statistics/include",
47    "$dsoftbus_root_path/sdk/transmission/trans_channel/udp/file/include",
48  ]
49
50  trans_session_sdk_src += [
51    "$dsoftbus_sdk_path/transmission/session/cpp/src/session_ipc_adapter.cpp",
52  ]
53  trans_session_sdk_inc += br_proxy_include_dirs
54  trans_session_sdk_src += br_proxy_sdk_sources
55
56  if (defined(global_parts_info) &&
57      defined(global_parts_info.hiviewdfx_hicollie)) {
58    trans_session_sdk_src += [
59      "$dsoftbus_sdk_path/transmission/session/cpp/src/session_set_timer.cpp",
60    ]
61  } else {
62    trans_session_sdk_src += [ "$dsoftbus_sdk_path/transmission/session/cpp/src/session_set_timer_virtual.c" ]
63  }
64
65  trans_session_sdk_inc +=
66  [
67    "$dsoftbus_root_path/core/transmission/broadcast/include",
68    "$dsoftbus_root_path/interfaces/kits/bus_center/enhance",
69    "$dsoftbus_root_path/interfaces/kits/transport/enhance",
70  ]
71  trans_session_sdk_src += [
72    "$dsoftbus_root_path/core/transmission/broadcast/src/trans_spec_object_proxy.cpp",
73    "$dsoftbus_root_path/core/transmission/broadcast/src/trans_spec_object_stub.cpp",
74  ]
75}