1# Copyright (C) 2023-2023 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_service_config") { 17 include_dirs = [ 18 "include", 19 "src/include", 20 ] 21} 22 23ohos_shared_library("cast_engine_service") { 24 install_enable = true 25 sources = [ 26 "src/cast_service_listener_impl_proxy.cpp", 27 "src/cast_session_manager_service.cpp", 28 "src/cast_session_manager_service_stub.cpp", 29 ] 30 31 configs = [ 32 ":cast_service_config", 33 "${cast_engine_root}:cast_engine_default_config", 34 ] 35 36 deps = [ 37 "${cast_engine_client}:cast_client_inner", 38 "${cast_engine_common}:cast_engine_common_sources", 39 "src/device_manager:cast_discovery", 40 "src/session:cast_session", 41 "//third_party/openssl:libcrypto_shared", 42 ] 43 44 external_deps = [ 45 "c_utils:utils", 46 "device_manager:devicemanagersdk", 47 "dsoftbus:softbus_client", 48 "graphic_surface:surface", 49 "hilog:libhilog", 50 "hisysevent:libhisysevent", 51 "input:libmmi-client", 52 "ipc:ipc_core", 53 "player_framework:media_client", 54 "safwk:system_ability_fwk", 55 "samgr:samgr_proxy", 56 "ability_runtime:app_manager", 57 "image_framework:image_native", 58 ] 59 60 subsystem_name = "castplus" 61 part_name = "cast_engine" 62 sanitize = { 63 cfi = true 64 cfi_cross_dso = true 65 debug = false 66 } 67 branch_protector_ret = "pac_ret" 68} 69