• 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(
15    "//foundation/communication/dsoftbus/core/transmission/trans_channel/trans_channel.gni")
16import("//foundation/communication/dsoftbus/dsoftbus.gni")
17
18trans_session_src = trans_channel_src
19trans_session_inc = trans_channel_inc
20trans_session_deps = trans_channel_deps
21trans_session_external_deps = []
22
23trans_session_src += [
24  "$dsoftbus_root_path/core/transmission/session/src/trans_session_manager.c",
25  "$dsoftbus_root_path/core/transmission/session/src/trans_session_service.c",
26]
27trans_session_inc += [
28  "$dsoftbus_root_path/core/transmission/ipc/include",
29  "$dsoftbus_root_path/core/transmission/session/include",
30  "$dsoftbus_root_path/core/transmission/interface",
31]
32
33if (defined(ohos_lite)) {
34  if (ohos_kernel_type == "liteos_m") {
35    trans_session_src += [
36      "$dsoftbus_root_path/core/transmission/ipc/mini/trans_client_proxy.c",
37    ]
38    trans_session_inc +=
39        [ "$dsoftbus_root_path/sdk/transmission/trans_channel/manager/include" ]
40    trans_session_deps += [ "//build/lite/config/component/cJSON:cjson_static" ]
41  } else {
42    trans_session_src += [
43      "$dsoftbus_root_path/core/transmission/ipc/small/trans_client_proxy.c",
44    ]
45    trans_session_deps += [
46      "//build/lite/config/component/cJSON:cjson_shared",
47      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
48    ]
49  }
50} else {
51  trans_session_inc += [
52    "$dsoftbus_root_path/core/transmission/ipc/$os_type/include",
53    "$dsoftbus_root_path/sdk/frame/$os_type/include",
54    "$dsoftbus_root_path/sdk/transmission/trans_channel/tcp_direct",
55    "//third_party/cJSON",
56    "//third_party/bounds_checking_function/include",
57  ]
58  trans_session_src += [
59    "$dsoftbus_root_path/core/transmission/ipc/$os_type/src/trans_client_proxy.cpp",
60    "$dsoftbus_root_path/core/transmission/ipc/$os_type/src/trans_client_proxy_standard.cpp",
61  ]
62  trans_session_deps +=
63      [ "//third_party/bounds_checking_function:libsec_shared" ]
64  trans_session_external_deps += [ "c_utils:utils" ]
65}
66