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