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_config") { 17 include_dirs = [ 18 "include", 19 "//third_party/jsoncpp/include", ] 20} 21 22ohos_static_library("cast_session") { 23 sources = [ 24 "src/cast_session_impl.cpp", 25 "src/cast_session_impl_stub.cpp", 26 "src/cast_session_listener_impl_proxy.cpp", 27 "src/cast_session_listeners.cpp", 28 "src/cast_session_state.cpp", 29 ] 30 31 configs = [ 32 ":cast_session_config", 33 "${cast_engine_root}:cast_engine_default_config", 34 ] 35 36 public_configs = [ 37 ":cast_session_config", 38 "src/channel:cast_session_channel_config", 39 "src/utils:cast_session_utils_config", 40 "src/rtsp:cast_session_rtsp_config", 41 "src/mirror:cast_session_mirror_config", 42 "src/stream:cast_session_stream_config", 43 ] 44 45 deps = [ 46 "${cast_engine_common}:cast_engine_common_sources", 47 "${cast_engine_service}/src/device_manager:cast_discovery", 48 "${cast_engine_service}/src/session/src/utils:cast_session_utils", 49 "src/channel:cast_session_channel", 50 "src/mirror:cast_session_mirror", 51 "src/stream:cast_session_stream", 52 "src/rtsp:cast_session_rtsp", 53 "src/utils:cast_session_utils", 54 "//third_party/openssl:libcrypto_shared", 55 "//third_party/jsoncpp:jsoncpp", 56 ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "hilog:libhilog", 61 "ipc:ipc_core", 62 "player_framework:media_client", 63 "audio_framework:audio_client", 64 "device_manager:devicemanagersdk", 65 "input:libmmi-client", 66 "graphic_surface:surface", 67 "ability_runtime:app_manager", 68 "image_framework:image_native", 69 ] 70 71 subsystem_name = "castplus" 72 part_name = "cast_engine" 73} 74