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_mirror_config") {
165e81a82fSopenharmony_ci  include_dirs = [
175e81a82fSopenharmony_ci    "include",
185e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/mirror/include",
195e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/include",
205e81a82fSopenharmony_ci  ]
215e81a82fSopenharmony_ci}
225e81a82fSopenharmony_ci
235e81a82fSopenharmony_ciohos_static_library("cast_session_mirror") {
245e81a82fSopenharmony_ci  sources = [
255e81a82fSopenharmony_ci    "src/mirror_player_impl.cpp",
265e81a82fSopenharmony_ci    "src/mirror_player_impl_stub.cpp",
275e81a82fSopenharmony_ci  ]
285e81a82fSopenharmony_ci
295e81a82fSopenharmony_ci  configs = [
305e81a82fSopenharmony_ci    ":cast_session_mirror_config",
315e81a82fSopenharmony_ci    "${cast_engine_root}:cast_engine_default_config",
325e81a82fSopenharmony_ci  ]
335e81a82fSopenharmony_ci
345e81a82fSopenharmony_ci  public_configs = [ ":cast_session_mirror_config" ]
355e81a82fSopenharmony_ci
365e81a82fSopenharmony_ci  deps = [
375e81a82fSopenharmony_ci    "${cast_engine_common}:cast_engine_common_sources",
385e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/channel:cast_session_channel",
395e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/rtsp:cast_session_rtsp",
405e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/utils:cast_session_utils",
415e81a82fSopenharmony_ci    "${cast_engine_service}/src/session/src/stream:cast_session_stream",
425e81a82fSopenharmony_ci  ]
435e81a82fSopenharmony_ci
445e81a82fSopenharmony_ci  external_deps = [
455e81a82fSopenharmony_ci    "audio_framework:audio_capturer",
465e81a82fSopenharmony_ci    "audio_framework:audio_client",
475e81a82fSopenharmony_ci    "audio_framework:audio_renderer",
485e81a82fSopenharmony_ci    "av_codec:av_codec_client",
495e81a82fSopenharmony_ci    "c_utils:utils",
505e81a82fSopenharmony_ci    "graphic_2d:librender_service_client",
515e81a82fSopenharmony_ci    "graphic_surface:surface",
525e81a82fSopenharmony_ci    "window_manager:libdm",
535e81a82fSopenharmony_ci    "window_manager:libwm",
545e81a82fSopenharmony_ci    "hitrace:hitrace_meter",
555e81a82fSopenharmony_ci    "hilog:libhilog",
565e81a82fSopenharmony_ci    "ipc:ipc_core",
575e81a82fSopenharmony_ci    "init:libbegetutil",
585e81a82fSopenharmony_ci    "input:libmmi-client",
595e81a82fSopenharmony_ci    "ability_runtime:extension_manager",
605e81a82fSopenharmony_ci    "ability_base:want",
615e81a82fSopenharmony_ci    "bundle_framework:appexecfwk_base",
625e81a82fSopenharmony_ci    "bundle_framework:appexecfwk_core",
635e81a82fSopenharmony_ci    "safwk:system_ability_fwk",
645e81a82fSopenharmony_ci    "samgr:samgr_proxy",
655e81a82fSopenharmony_ci    "ability_runtime:app_manager",
665e81a82fSopenharmony_ci  ]
675e81a82fSopenharmony_ci
685e81a82fSopenharmony_ci  subsystem_name = "castplus"
695e81a82fSopenharmony_ci  part_name = "cast_engine"
705e81a82fSopenharmony_ci}
71