1# Copyright (c) 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("//build/ohos.gni") 15import("//foundation/ability/ability_runtime/service_router_framework/srms.gni") 16 17group("srms_target") { 18 deps = [ ":libsrms" ] 19} 20 21config("srms_config") { 22 include_dirs = [ 23 "include", 24 "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper", 25 "${ability_runtime_services_path}/common/include", 26 ] 27} 28 29ohos_shared_library("libsrms") { 30 sanitize = { 31 cfi = true 32 cfi_cross_dso = true 33 debug = false 34 } 35 branch_protector_ret = "pac_ret" 36 sources = [ 37 "src/inner_service_info.cpp", 38 "src/service_router_data_mgr.cpp", 39 "src/service_router_mgr_service.cpp", 40 "src/service_router_mgr_stub.cpp", 41 "src/sr_common_event_subscriber.cpp", 42 "src/sr_samgr_helper.cpp", 43 ] 44 45 configs = [ ":srms_config" ] 46 47 deps = [ 48 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 49 "${ability_runtime_innerkits_path}/ability_manager:ability_start_options", 50 "${ability_runtime_native_path}/appkit:appkit_manager_helper", 51 "${srms_inner_api_path}:srms_fwk", 52 ] 53 54 external_deps = [ 55 "ability_base:session_info", 56 "ability_base:want", 57 "ability_base:zuri", 58 "access_token:libaccesstoken_sdk", 59 "access_token:libtokenid_sdk", 60 "bundle_framework:appexecfwk_base", 61 "bundle_framework:appexecfwk_core", 62 "bundle_framework:libappexecfwk_common", 63 "c_utils:utils", 64 "common_event_service:cesfwk_innerkits", 65 "eventhandler:libeventhandler", 66 "hilog:libhilog", 67 "ipc:ipc_single", 68 "os_account:os_account_innerkits", 69 "safwk:system_ability_fwk", 70 "samgr:samgr_proxy", 71 ] 72 73 defines = [ "ACCOUNT_ENABLE" ] 74 75 subsystem_name = "ability" 76 part_name = "ability_runtime" 77} 78