• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-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.
13import("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni")
14
15config("cast_session_channel_config") {
16  include_dirs = [ "include", "src/softbus" ]
17}
18
19ohos_static_library("cast_session_channel") {
20  sources = [
21    "src/channel_manager.cpp",
22    "src/softbus/softbus_connection.cpp",
23    "src/softbus/softbus_wrapper.cpp",
24    "src/tcp/tcp_connection.cpp",
25    "src/tcp/tcp_socket.cpp",
26  ]
27
28  include_dirs = [
29    "src/softbus",
30    "src/tcp",
31    "${cast_engine_service}/src/session/src/utils/include",
32    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include",
33    "//foundation/communication/dsoftbus/interfaces/inner_kits/transport/",
34    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include",
35    "//foundation/communication/dsoftbus/dsoftbus_enhance/interfaces/kits/transport",
36    "//foundation/communication/dsoftbus/dsoftbus_enhance/sdk/transmission/trans_channel/udp/file/include",
37    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/include",
38    "//foundation/communication/dsoftbus/sdk/transmission/session/include",
39    "//foundation/communication/dsoftbus/core/common/include",
40    "//foundation/communication/dsoftbus/adapter/common/include",
41  ]
42
43  configs = [
44    ":cast_session_channel_config",
45    "${cast_engine_root}:cast_engine_default_config",
46  ]
47
48  public_configs = [ ":cast_session_channel_config" ]
49
50  deps = [
51    "${cast_engine_common}:cast_engine_common_sources",
52    "${cast_engine_service}/src/device_manager:cast_discovery",
53  ]
54
55  external_deps = [
56    "c_utils:utils",
57    "dsoftbus:softbus_client",
58    "hilog:libhilog",
59    "hisysevent:libhisysevent",
60    "device_manager:devicemanagersdk",
61  ]
62
63  subsystem_name = "castplus"
64  part_name = "cast_engine"
65}
66