12e147c35Sopenharmony_ci# Copyright (C) 2023-2023 Huawei Device Co., Ltd.
22e147c35Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
32e147c35Sopenharmony_ci# you may not use this file except in compliance with the License.
42e147c35Sopenharmony_ci# You may obtain a copy of the License at
52e147c35Sopenharmony_ci#
62e147c35Sopenharmony_ci#      http://www.apache.org/licenses/LICENSE-2.0
72e147c35Sopenharmony_ci#
82e147c35Sopenharmony_ci#  Unless required by applicable law or agreed to in writing, software
92e147c35Sopenharmony_ci#  distributed under the License is distributed on an "AS IS" BASIS,
102e147c35Sopenharmony_ci#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112e147c35Sopenharmony_ci#  See the License for the specific language governing permissions and
122e147c35Sopenharmony_ci#  limitations under the License.
132e147c35Sopenharmony_ci
142e147c35Sopenharmony_ciimport("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni")
152e147c35Sopenharmony_ci
162e147c35Sopenharmony_ciconfig("cast_session_config") {
172e147c35Sopenharmony_ci  include_dirs = [
182e147c35Sopenharmony_ci    "include",
192e147c35Sopenharmony_ci    "//third_party/jsoncpp/include", ]
202e147c35Sopenharmony_ci}
212e147c35Sopenharmony_ci
222e147c35Sopenharmony_ciohos_static_library("cast_session") {
232e147c35Sopenharmony_ci  sources = [
242e147c35Sopenharmony_ci    "src/cast_session_impl.cpp",
252e147c35Sopenharmony_ci    "src/cast_session_impl_stub.cpp",
262e147c35Sopenharmony_ci    "src/cast_session_listener_impl_proxy.cpp",
272e147c35Sopenharmony_ci    "src/cast_session_listeners.cpp",
282e147c35Sopenharmony_ci    "src/cast_session_state.cpp",
292e147c35Sopenharmony_ci  ]
302e147c35Sopenharmony_ci
312e147c35Sopenharmony_ci  configs = [
322e147c35Sopenharmony_ci    ":cast_session_config",
332e147c35Sopenharmony_ci    "${cast_engine_root}:cast_engine_default_config",
342e147c35Sopenharmony_ci  ]
352e147c35Sopenharmony_ci
362e147c35Sopenharmony_ci  public_configs = [
372e147c35Sopenharmony_ci    ":cast_session_config",
382e147c35Sopenharmony_ci    "src/channel:cast_session_channel_config",
392e147c35Sopenharmony_ci    "src/utils:cast_session_utils_config",
402e147c35Sopenharmony_ci    "src/rtsp:cast_session_rtsp_config",
412e147c35Sopenharmony_ci    "src/mirror:cast_session_mirror_config",
422e147c35Sopenharmony_ci    "src/stream:cast_session_stream_config",
432e147c35Sopenharmony_ci  ]
442e147c35Sopenharmony_ci
452e147c35Sopenharmony_ci  deps = [
462e147c35Sopenharmony_ci    "${cast_engine_common}:cast_engine_common_sources",
472e147c35Sopenharmony_ci    "${cast_engine_service}/src/device_manager:cast_discovery",
482e147c35Sopenharmony_ci    "${cast_engine_service}/src/session/src/utils:cast_session_utils",
492e147c35Sopenharmony_ci    "src/channel:cast_session_channel",
502e147c35Sopenharmony_ci    "src/mirror:cast_session_mirror",
512e147c35Sopenharmony_ci    "src/stream:cast_session_stream",
522e147c35Sopenharmony_ci    "src/rtsp:cast_session_rtsp",
532e147c35Sopenharmony_ci    "src/utils:cast_session_utils",
542e147c35Sopenharmony_ci    "//third_party/openssl:libcrypto_shared",
552e147c35Sopenharmony_ci    "//third_party/jsoncpp:jsoncpp",
562e147c35Sopenharmony_ci  ]
572e147c35Sopenharmony_ci
582e147c35Sopenharmony_ci  external_deps = [
592e147c35Sopenharmony_ci    "c_utils:utils",
602e147c35Sopenharmony_ci    "hilog:libhilog",
612e147c35Sopenharmony_ci    "ipc:ipc_core",
622e147c35Sopenharmony_ci    "player_framework:media_client",
632e147c35Sopenharmony_ci    "audio_framework:audio_client",
642e147c35Sopenharmony_ci    "device_manager:devicemanagersdk",
652e147c35Sopenharmony_ci    "input:libmmi-client",
662e147c35Sopenharmony_ci    "graphic_surface:surface",
672e147c35Sopenharmony_ci    "ability_runtime:app_manager",
682e147c35Sopenharmony_ci    "image_framework:image_native",
692e147c35Sopenharmony_ci  ]
702e147c35Sopenharmony_ci
712e147c35Sopenharmony_ci  subsystem_name = "castplus"
722e147c35Sopenharmony_ci  part_name = "cast_engine"
732e147c35Sopenharmony_ci}
74