• 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("application_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/context",
30    "${ability_runtime_services_path}/common/include",
31    "${ability_runtime_path}/interfaces/inner_api/runtime/include",
32    "${ability_runtime_path}/interfaces/inner_api/error_utils/include",
33    "${ability_runtime_path}/interfaces/kits/native/ability/native",
34  ]
35
36  sources = [ "./src/ets_application.cpp" ]
37
38  deps = [
39    "${ability_runtime_innerkits_path}/ability_manager:ability_manager",
40    "${ability_runtime_innerkits_path}/ani_base_context:ani_base_context",
41    "${ability_runtime_innerkits_path}/runtime:runtime",
42    "${ability_runtime_native_path}/appkit:app_context",
43    "${ability_runtime_native_path}/appkit:app_context_utils",
44    "${ability_runtime_native_path}/appkit:application_context_manager",
45    "${ability_runtime_path}/frameworks/ets/ani/ani_common:ani_common",
46    "${ability_runtime_services_path}/common:perm_verification",
47  ]
48
49  external_deps = [
50    "ability_base:configuration",
51    "bundle_framework:appexecfwk_core",
52    "c_utils:utils",
53    "hilog:libhilog",
54    "ipc:ipc_core",
55    "json:nlohmann_json_static",
56    "napi:ace_napi",
57    "runtime_core:ani",
58  ]
59
60  innerapi_tags = [ "platformsdk" ]
61  subsystem_name = "ability"
62  part_name = "ability_runtime"
63}
64