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
17config("srms_fwk_config") {
18  include_dirs = [ "include" ]
19}
20
21ohos_shared_library("srms_fwk") {
22  sources = [
23    "src/service_info.cpp",
24    "src/service_router_death_recipient.cpp",
25    "src/service_router_load_callback.cpp",
26    "src/service_router_mgr_helper.cpp",
27    "src/service_router_mgr_proxy.cpp",
28  ]
29
30  public_configs = [ ":srms_fwk_config" ]
31
32  deps = [ "${ability_runtime_innerkits_path}/ability_manager:ability_manager" ]
33
34  external_deps = [
35    "ability_base:session_info",
36    "ability_base:want",
37    "bundle_framework:appexecfwk_base",
38    "bundle_framework:libappexecfwk_common",
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_core",
42    "samgr:samgr_proxy",
43  ]
44
45  innerapi_tags = [ "platformsdk" ]
46  subsystem_name = "ability"
47  part_name = "ability_runtime"
48}
49