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