• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  defines = [
31    "APP_LOG_TAG = \"ServiceRouterMgrService\"",
32    "LOG_DOMAIN = 0xD001120",
33  ]
34
35  public_configs = [ ":srms_fwk_config" ]
36
37  deps = [ "${ability_runtime_innerkits_path}/ability_manager:ability_manager" ]
38
39  external_deps = [
40    "ability_base:session_info",
41    "ability_base:want",
42    "bundle_framework:appexecfwk_base",
43    "bundle_framework:libappexecfwk_common",
44    "c_utils:utils",
45    "hilog:libhilog",
46    "ipc:ipc_core",
47    "samgr:samgr_proxy",
48  ]
49
50  innerapi_tags = [ "platformsdk" ]
51  subsystem_name = "ability"
52  part_name = "ability_runtime"
53}
54