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_rtsp_config") {
165e81a82fSopenharmony_ci  include_dirs = [ "include" ]
175e81a82fSopenharmony_ci}
185e81a82fSopenharmony_ci
195e81a82fSopenharmony_ciohos_static_library("cast_session_rtsp") {
205e81a82fSopenharmony_ci  sources = [
215e81a82fSopenharmony_ci    "src/rtsp_channel_manager.cpp",
225e81a82fSopenharmony_ci    "src/rtsp_controller.cpp",
235e81a82fSopenharmony_ci    "src/rtsp_package.cpp",
245e81a82fSopenharmony_ci    "src/rtsp_param_info.cpp",
255e81a82fSopenharmony_ci    "src/rtsp_parse.cpp",
265e81a82fSopenharmony_ci  ]
275e81a82fSopenharmony_ci
285e81a82fSopenharmony_ci  include_dirs = [ "src" ]
295e81a82fSopenharmony_ci
305e81a82fSopenharmony_ci  configs = [
315e81a82fSopenharmony_ci    ":cast_session_rtsp_config",
325e81a82fSopenharmony_ci    "${cast_engine_root}:cast_engine_default_config",
335e81a82fSopenharmony_ci  ]
345e81a82fSopenharmony_ci
355e81a82fSopenharmony_ci  public_configs = [ ":cast_session_rtsp_config" ]
365e81a82fSopenharmony_ci
375e81a82fSopenharmony_ci  deps = [
385e81a82fSopenharmony_ci    "${cast_engine_common}:cast_engine_common_sources",
395e81a82fSopenharmony_ci    "${cast_engine_service}/src/device_manager:cast_discovery",
405e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/channel:cast_session_channel",
415e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/utils:cast_session_utils",
425e81a82fSopenharmony_ci    "//third_party/openssl:libcrypto_shared",
435e81a82fSopenharmony_ci  ]
445e81a82fSopenharmony_ci
455e81a82fSopenharmony_ci  external_deps = [
465e81a82fSopenharmony_ci    "hilog:libhilog",
475e81a82fSopenharmony_ci    "ipc:ipc_core",
485e81a82fSopenharmony_ci    "device_manager:devicemanagersdk",
495e81a82fSopenharmony_ci  ]
505e81a82fSopenharmony_ci
515e81a82fSopenharmony_ci  subsystem_name = "castplus"
525e81a82fSopenharmony_ci  part_name = "cast_engine"
535e81a82fSopenharmony_ci}
54