• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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
16conn_common_inc = [
17  "$dsoftbus_root_path/core/authentication/include",
18  "$dsoftbus_root_path/core/authentication/interface",
19  "$dsoftbus_root_path/interfaces/kits/connect",
20  "$dsoftbus_root_path/core/connection/interface",
21  "$dsoftbus_root_path/core/connection/common/include",
22  "$dsoftbus_root_path/core/connection/manager",
23  "$dsoftbus_root_path/core/transmission/trans_channel/common/include",
24  "$dsoftbus_root_path/core/transmission/trans_channel/proxy/include",
25]
26conn_common_src = [
27  "$dsoftbus_root_path/core/connection/common/src/softbus_conn_common.c",
28  "$dsoftbus_root_path/core/connection/common/src/softbus_conn_async_helper.c",
29  "$dsoftbus_root_path/core/connection/common/src/softbus_conn_bytes_delivery.c",
30  "$dsoftbus_root_path/core/connection/common/src/softbus_conn_fair_priority_queue.c",
31  "$dsoftbus_root_path/core/connection/common/src/softbus_rc_collection.c",
32  "$dsoftbus_root_path/core/connection/common/src/softbus_rc_object.c",
33]
34
35if (dsoftbus_feature_conn_tcp_comm) {
36  conn_common_src += [
37    "$dsoftbus_root_path/core/connection/common/src/softbus_base_listener.c",
38    "$dsoftbus_root_path/core/connection/common/src/softbus_datahead_transform.c",
39    "$dsoftbus_root_path/core/connection/common/src/softbus_socket.c",
40    "$dsoftbus_root_path/core/connection/common/src/softbus_tcp_socket.c",
41    "$dsoftbus_root_path/core/connection/common/src/softbus_usb_tcp_socket.c",
42    "$dsoftbus_root_path/core/connection/common/src/softbus_mintp_socket.c",
43    "$dsoftbus_root_path/core/connection/common/src/softbus_htp_socket.c",
44  ]
45  if (defined(ohos_lite) && ohos_kernel_type == "liteos_m") {
46    conn_common_src += [ "$dsoftbus_root_path/core/connection/common/src/softbus_select_event_implement.c" ]
47  } else {
48    conn_common_src += [ "$dsoftbus_root_path/core/connection/common/src/softbus_epoll_event_implement.c" ]
49  }
50} else {
51  conn_common_src += [
52    "$dsoftbus_root_path/core/connection/common/src/softbus_base_listener_virtual.c",
53    "$dsoftbus_root_path/core/connection/common/src/softbus_datahead_transform_virtual.c",
54    "$dsoftbus_root_path/core/connection/common/src/softbus_socket_virtual.c",
55    "$dsoftbus_root_path/core/connection/common/src/softbus_tcp_socket_virtual.c",
56  ]
57}
58