• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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/config/components/ets_frontend/ets2abc_config.gni")
15import("//build/ohos.gni")
16import("//foundation/ability/ability_runtime/ability_runtime.gni")
17
18ohos_shared_library("ability_delegator_registry_ani_kit") {
19  branch_protector_ret = "pac_ret"
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    cfi_vcall_icall_only = true
24    debug = false
25  }
26
27  include_dirs = [
28    "./include",
29    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/app",
30    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
31    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/ability_delegator/include",
32    "${ability_runtime_services_path}/common/include",
33    "${ability_runtime_path}/interfaces/kits/native/ability/native",
34    "${ability_runtime_path}/frameworks/ets/ani/ani_common/include",
35    "${ability_runtime_path}/frameworks/ets/ani/enum_convert",
36    "${ability_runtime_path}/frameworks/js/napi/app/ability_delegator",
37    "${ability_runtime_path}/interfaces/inner_api/runtime/include",
38  ]
39
40  configs = []
41
42  public_configs = []
43
44  sources = [
45    "./src/ets_ability_delegator.cpp",
46    "./src/ets_ability_delegator_registry.cpp",
47    "./src/ets_ability_delegator_utils.cpp",
48    "./src/ets_ability_monitor.cpp",
49  ]
50
51  cflags = []
52  if (target_cpu == "arm") {
53    cflags += [ "-DBINDER_IPC_32BIT" ]
54  }
55
56  deps = [
57    "${ability_runtime_innerkits_path}/ability_manager:ability_manager",
58    "${ability_runtime_innerkits_path}/ability_manager:ability_start_options",
59    "${ability_runtime_innerkits_path}/runtime:runtime",
60    "${ability_runtime_native_path}/appkit:app_context",
61    "${ability_runtime_native_path}/appkit:app_context_utils",
62    "${ability_runtime_native_path}/appkit:appkit_delegator",
63    "${ability_runtime_native_path}/appkit:delegator_mgmt",
64    "${ability_runtime_path}/frameworks/ets/ani/ani_common:ani_common",
65  ]
66
67  external_deps = [
68    "ability_base:want",
69    "bundle_framework:appexecfwk_base",
70    "c_utils:utils",
71    "common_event_service:cesfwk_innerkits",
72    "eventhandler:libeventhandler",
73    "hilog:libhilog",
74    "ipc:ipc_core",
75    "json:nlohmann_json_static",
76    "napi:ace_napi",
77    "runtime_core:ani",
78  ]
79
80  innerapi_tags = [ "platformsdk" ]
81  subsystem_name = "ability"
82  part_name = "ability_runtime"
83}
84