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 ] 26} 27 28ohos_shared_library("libsrms") { 29 sources = [ 30 "src/inner_service_info.cpp", 31 "src/service_router_data_mgr.cpp", 32 "src/service_router_mgr_service.cpp", 33 "src/service_router_mgr_stub.cpp", 34 "src/sr_common_event_subscriber.cpp", 35 "src/sr_samgr_helper.cpp", 36 ] 37 38 defines = [ 39 "APP_LOG_TAG = \"ServiceRouterMgrService\"", 40 "LOG_DOMAIN = 0xD001120", 41 ] 42 43 configs = [ ":srms_config" ] 44 45 deps = [ 46 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 47 "${ability_runtime_native_path}/appkit:appkit_manager_helper", 48 "${srms_inner_api_path}:srms_fwk", 49 ] 50 51 external_deps = [ 52 "ability_base:session_info", 53 "ability_base:want", 54 "ability_base:zuri", 55 "access_token:libaccesstoken_sdk", 56 "access_token:libtokenid_sdk", 57 "bundle_framework:appexecfwk_base", 58 "bundle_framework:appexecfwk_core", 59 "bundle_framework:libappexecfwk_common", 60 "c_utils:utils", 61 "common_event_service:cesfwk_innerkits", 62 "eventhandler:libeventhandler", 63 "hilog:libhilog", 64 "ipc:ipc_single", 65 "os_account:os_account_innerkits", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 ] 69 70 defines += [ "ACCOUNT_ENABLE" ] 71 72 subsystem_name = "ability" 73 part_name = "ability_runtime" 74} 75