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_ci 145e81a82fSopenharmony_ciimport("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni") 155e81a82fSopenharmony_ci 165e81a82fSopenharmony_ciconfig("cast_session_stream_config") { 175e81a82fSopenharmony_ci include_dirs = [ 185e81a82fSopenharmony_ci "include", 195e81a82fSopenharmony_ci "${cast_engine_service}/src/device_manager/include", 205e81a82fSopenharmony_ci "${cast_engine_service}/src/session/include", 215e81a82fSopenharmony_ci "${cast_engine_service}/src/session/src/utils/include", 225e81a82fSopenharmony_ci "${cast_engine_service}/src/session/src/stream/include", 235e81a82fSopenharmony_ci "${cast_engine_service}/src/session/src/stream/src/local/include", 245e81a82fSopenharmony_ci "${cast_engine_service}/src/session/src/stream/src/player/include", 255e81a82fSopenharmony_ci "//third_party/json/single_include/nlohmann", 265e81a82fSopenharmony_ci ] 275e81a82fSopenharmony_ci} 285e81a82fSopenharmony_ci 295e81a82fSopenharmony_ciohos_static_library("cast_session_stream") { 305e81a82fSopenharmony_ci sources = [ 315e81a82fSopenharmony_ci "src/cast_stream_manager_client.cpp", 325e81a82fSopenharmony_ci "src/cast_stream_manager_server.cpp", 335e81a82fSopenharmony_ci "src/i_cast_stream_manager.cpp", 345e81a82fSopenharmony_ci "src/local/src/cast_local_file_channel_client.cpp", 355e81a82fSopenharmony_ci "src/local/src/cast_local_file_channel_common.cpp", 365e81a82fSopenharmony_ci "src/local/src/cast_local_file_channel_server.cpp", 375e81a82fSopenharmony_ci "src/local/src/local_data_source.cpp", 385e81a82fSopenharmony_ci "src/player/src/cast_stream_player.cpp", 395e81a82fSopenharmony_ci "src/player/src/cast_stream_player_manager.cpp", 405e81a82fSopenharmony_ci "src/player/src/remote_player_controller.cpp", 415e81a82fSopenharmony_ci "src/player/src/stream_player_impl_stub.cpp", 425e81a82fSopenharmony_ci "src/player/src/stream_player_listener_impl_proxy.cpp", 435e81a82fSopenharmony_ci "src/player/src/cast_stream_player_utils.cpp", 445e81a82fSopenharmony_ci ] 455e81a82fSopenharmony_ci 465e81a82fSopenharmony_ci configs = [ 475e81a82fSopenharmony_ci ":cast_session_stream_config", 485e81a82fSopenharmony_ci "${cast_engine_root}:cast_engine_default_config", 495e81a82fSopenharmony_ci ] 505e81a82fSopenharmony_ci 515e81a82fSopenharmony_ci public_configs = [ ":cast_session_stream_config" ] 525e81a82fSopenharmony_ci 535e81a82fSopenharmony_ci deps = [ 545e81a82fSopenharmony_ci "${cast_engine_common}:cast_engine_common_sources", 555e81a82fSopenharmony_ci "${cast_engine_service}/src/device_manager:cast_discovery", 565e81a82fSopenharmony_ci "${cast_engine_service}/src/session/src/channel:cast_session_channel", 575e81a82fSopenharmony_ci "${cast_engine_service}/src/session/src/utils:cast_session_utils", 585e81a82fSopenharmony_ci ] 595e81a82fSopenharmony_ci 605e81a82fSopenharmony_ci external_deps = [ 615e81a82fSopenharmony_ci "audio_framework:audio_client", 625e81a82fSopenharmony_ci "c_utils:utils", 635e81a82fSopenharmony_ci "graphic_surface:surface", 645e81a82fSopenharmony_ci "hilog:libhilog", 655e81a82fSopenharmony_ci "hisysevent:libhisysevent", 665e81a82fSopenharmony_ci "player_framework:media_client", 675e81a82fSopenharmony_ci "image_framework:image_native", 685e81a82fSopenharmony_ci ] 695e81a82fSopenharmony_ci 705e81a82fSopenharmony_ci subsystem_name = "castplus" 715e81a82fSopenharmony_ci part_name = "cast_engine" 725e81a82fSopenharmony_ci} 73