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 ] 42 43 external_deps = [ 44 "ability_runtime:app_manager", 45 "bundle_framework:appexecfwk_core", 46 "c_utils:utils", 47 "device_manager:devicemanagersdk", 48 "dsoftbus:softbus_client", 49 "graphic_surface:surface", 50 "hilog:libhilog", 51 "hisysevent:libhisysevent", 52 "image_framework:image_native", 53 "init:libbegetutil", 54 "input:libmmi-client", 55 "ipc:ipc_core", 56 "openssl:libcrypto_shared", 57 "os_account:os_account_innerkits", 58 "player_framework:media_client", 59 "power_manager:powermgr_client", 60 "safwk:system_ability_fwk", 61 "samgr:samgr_proxy", 62 ] 63 64 subsystem_name = "castplus" 65 part_name = "cast_engine" 66 sanitize = { 67 cfi = true 68 cfi_cross_dso = true 69 debug = false 70 } 71 branch_protector_ret = "pac_ret" 72} 73