• 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("app_manager_ani") {
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_services_path}/common/include",
31    "${ability_runtime_path}/frameworks/ets/ani/ani_common/include",
32    "${ability_runtime_path}/interfaces/kits/native/ability/native",
33    "${ability_runtime_path}/interfaces/inner_api/runtime/include",
34    "${ability_runtime_path}/frameworks/ets/ani/enum_convert",
35  ]
36
37  configs = []
38
39  public_configs = []
40
41  sources = [
42    "./src/ets_app_manager.cpp",
43    "./src/ets_app_manager_utils.cpp",
44  ]
45
46  cflags = []
47  if (target_cpu == "arm") {
48    cflags += [ "-DBINDER_IPC_32BIT" ]
49  }
50
51  deps = [
52    "${ability_runtime_innerkits_path}/ability_manager:ability_manager",
53    "${ability_runtime_innerkits_path}/app_manager:app_manager",
54    "${ability_runtime_innerkits_path}/runtime:runtime",
55    "${ability_runtime_native_path}/appkit:app_context",
56    "${ability_runtime_path}/frameworks/ets/ani/ani_common:ani_common",
57  ]
58
59  external_deps = [
60    "ability_base:base",
61    "ability_base:configuration",
62    "c_utils:utils",
63    "eventhandler:libeventhandler",
64    "hilog:libhilog",
65    "ipc:ipc_core",
66    "napi:ace_napi",
67    "runtime_core:ani",
68    "samgr:samgr_proxy",
69  ]
70
71  if (ability_runtime_graphics) {
72    external_deps += [ "access_token:libtokenid_sdk" ]
73    defines = [ "SUPPORT_SCREEN" ]
74  }
75
76  innerapi_tags = [ "platformsdk" ]
77  subsystem_name = "ability"
78  part_name = "ability_runtime"
79}
80