• 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/arkui/ace_engine/ace_config.gni")
17
18#构建ANI库
19ohos_shared_library("promptAction_ani") {
20  deps = [ "$ace_root/build:libace_compatible" ]
21  include_dirs = [ "./include" ]
22  sources = [
23    "./src/promptAction.cpp",
24    "./src/promptActionUtils.cpp",
25  ]
26  external_deps = [
27    #"runtime_core:libarkruntime",
28    "napi:ace_napi",
29    "runtime_core:ani",
30  ]
31  configs = [ "$ace_root:ace_config" ]
32  part_name = "ace_engine"
33  subsystem_name = "arkui"
34  output_extension = "so"
35}
36
37#构建abc
38generate_static_abc("promptAction") {
39  base_url = "./ets"
40  files = [ "./ets/@ohos.promptAction.ets" ]
41  is_boot_abc = "True"
42  device_dst_file = "/system/framework/promptAction.abc"
43}
44
45ohos_prebuilt_etc("promptAction_etc") {
46  source = "$target_out_dir/promptAction.abc"
47  module_install_dir = "framework"
48  part_name = "ace_engine"
49  subsystem_name = "arkui"
50  deps = [ ":promptAction" ]
51}
52