1# Copyright (c) 2024-2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni") 15 16config("cast_session_stream_config") { 17 include_dirs = [ 18 "include", 19 "${cast_engine_service}/src/device_manager/include", 20 "${cast_engine_service}/src/session/include", 21 "${cast_engine_service}/src/session/src/utils/include", 22 "${cast_engine_service}/src/session/src/stream/include", 23 "${cast_engine_service}/src/session/src/stream/src/local/include", 24 "${cast_engine_service}/src/session/src/stream/src/player/include", 25 "//third_party/json/single_include/nlohmann", 26 ] 27} 28 29ohos_static_library("cast_session_stream") { 30 sources = [ 31 "src/cast_stream_manager_client.cpp", 32 "src/cast_stream_manager_server.cpp", 33 "src/i_cast_stream_manager.cpp", 34 "src/local/src/cast_local_file_channel_client.cpp", 35 "src/local/src/cast_local_file_channel_common.cpp", 36 "src/local/src/cast_local_file_channel_server.cpp", 37 "src/local/src/local_data_source.cpp", 38 "src/player/src/cast_stream_player.cpp", 39 "src/player/src/cast_stream_player_manager.cpp", 40 "src/player/src/remote_player_controller.cpp", 41 "src/player/src/stream_player_impl_stub.cpp", 42 "src/player/src/stream_player_listener_impl_proxy.cpp", 43 "src/player/src/cast_stream_player_utils.cpp", 44 ] 45 46 configs = [ 47 ":cast_session_stream_config", 48 "${cast_engine_root}:cast_engine_default_config", 49 ] 50 51 public_configs = [ ":cast_session_stream_config" ] 52 53 deps = [ 54 "${cast_engine_common}:cast_engine_common_sources", 55 "${cast_engine_service}/src/device_manager:cast_discovery", 56 "${cast_engine_service}/src/session/src/channel:cast_session_channel", 57 "${cast_engine_service}/src/session/src/utils:cast_session_utils", 58 ] 59 60 external_deps = [ 61 "audio_framework:audio_client", 62 "c_utils:utils", 63 "graphic_surface:surface", 64 "hilog:libhilog", 65 "hisysevent:libhisysevent", 66 "player_framework:media_client", 67 "image_framework:image_native", 68 ] 69 70 subsystem_name = "castplus" 71 part_name = "cast_engine" 72} 73