• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023-2025 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/ability_runtime.gni")
16
17config("extension_manager_public_config") {
18  include_dirs = [
19    "include",
20    "${ability_runtime_innerkits_path}/ability_manager/include",
21  ]
22
23  if (target_cpu == "arm") {
24    cflags = [ "-DBINDER_IPC_32BIT" ]
25  }
26}
27
28config("extension_manager_config") {
29  visibility = [ ":*" ]
30
31  include_dirs = [
32    "${ability_runtime_innerkits_path}/ability_manager/include",
33    "${ability_runtime_services_path}/abilitymgr/include/utils",
34    "${ability_runtime_services_path}/abilitymgr/include",
35    "${ability_runtime_services_path}/common/include",
36  ]
37}
38
39ohos_shared_library("extension_manager") {
40  branch_protector_ret = "pac_ret"
41
42  sources = [
43    "src/extension_manager_client.cpp",
44    "src/extension_manager_proxy.cpp",
45    "${ability_runtime_services_path}/abilitymgr/src/extension_running_info.cpp",
46  ]
47
48  configs = [ ":extension_manager_config" ]
49  public_configs = [ ":extension_manager_public_config" ]
50
51  public_deps = [ "${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub" ]
52
53  deps = [
54    "${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub",
55    "${ability_runtime_services_path}/common:hitrace_chain_util",
56  ]
57
58  external_deps = [
59    "ability_base:want",
60    "bundle_framework:appexecfwk_base",
61    "c_utils:utils",
62    "hilog:libhilog",
63    "hitrace:hitrace_meter",
64    "hitrace:libhitracechain",
65    "ipc:ipc_single",
66    "safwk:system_ability_fwk",
67    "samgr:samgr_proxy",
68  ]
69
70  innerapi_tags = [ "platformsdk" ]
71  subsystem_name = "ability"
72  part_name = "ability_runtime"
73}
74