15e81a82fSopenharmony_ci# Copyright (c) 2024-2024 Huawei Device Co., Ltd.
25e81a82fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35e81a82fSopenharmony_ci# you may not use this file except in compliance with the License.
45e81a82fSopenharmony_ci# You may obtain a copy of the License at
55e81a82fSopenharmony_ci#
65e81a82fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75e81a82fSopenharmony_ci#
85e81a82fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95e81a82fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105e81a82fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115e81a82fSopenharmony_ci# See the License for the specific language governing permissions and
125e81a82fSopenharmony_ci# limitations under the License.
135e81a82fSopenharmony_ciimport("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni")
145e81a82fSopenharmony_ci
155e81a82fSopenharmony_ciconfig("cast_session_channel_config") {
165e81a82fSopenharmony_ci  include_dirs = [ "include", "src/softbus" ]
175e81a82fSopenharmony_ci}
185e81a82fSopenharmony_ci
195e81a82fSopenharmony_ciohos_static_library("cast_session_channel") {
205e81a82fSopenharmony_ci  sources = [
215e81a82fSopenharmony_ci    "src/channel_manager.cpp",
225e81a82fSopenharmony_ci    "src/softbus/softbus_connection.cpp",
235e81a82fSopenharmony_ci    "src/softbus/softbus_wrapper.cpp",
245e81a82fSopenharmony_ci    "src/tcp/tcp_connection.cpp",
255e81a82fSopenharmony_ci    "src/tcp/tcp_socket.cpp",
265e81a82fSopenharmony_ci  ]
275e81a82fSopenharmony_ci
285e81a82fSopenharmony_ci  include_dirs = [
295e81a82fSopenharmony_ci    "src/softbus",
305e81a82fSopenharmony_ci    "src/tcp",
315e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/utils/include",
325e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include",
335e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/interfaces/inner_kits/transport/",
345e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include",
355e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/dsoftbus_enhance/interfaces/kits/transport",
365e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/dsoftbus_enhance/sdk/transmission/trans_channel/udp/file/include",
375e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/include",
385e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/sdk/transmission/session/include",
395e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/core/common/include",
405e81a82fSopenharmony_ci    "//foundation/communication/dsoftbus/adapter/common/include",
415e81a82fSopenharmony_ci  ]
425e81a82fSopenharmony_ci
435e81a82fSopenharmony_ci  configs = [
445e81a82fSopenharmony_ci    ":cast_session_channel_config",
455e81a82fSopenharmony_ci    "${cast_engine_root}:cast_engine_default_config",
465e81a82fSopenharmony_ci  ]
475e81a82fSopenharmony_ci
485e81a82fSopenharmony_ci  public_configs = [ ":cast_session_channel_config" ]
495e81a82fSopenharmony_ci
505e81a82fSopenharmony_ci  deps = [
515e81a82fSopenharmony_ci    "${cast_engine_common}:cast_engine_common_sources",
525e81a82fSopenharmony_ci    "${cast_engine_service}/src/device_manager:cast_discovery",
535e81a82fSopenharmony_ci  ]
545e81a82fSopenharmony_ci
555e81a82fSopenharmony_ci  external_deps = [
565e81a82fSopenharmony_ci    "c_utils:utils",
575e81a82fSopenharmony_ci    "dsoftbus:softbus_client",
585e81a82fSopenharmony_ci    "hilog:libhilog",
595e81a82fSopenharmony_ci    "hisysevent:libhisysevent",
605e81a82fSopenharmony_ci    "device_manager:devicemanagersdk",
615e81a82fSopenharmony_ci  ]
625e81a82fSopenharmony_ci
635e81a82fSopenharmony_ci  subsystem_name = "castplus"
645e81a82fSopenharmony_ci  part_name = "cast_engine"
655e81a82fSopenharmony_ci}
66