• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
15
16ohos_js_assets("ams_system_dialog_js_assets") {
17  hap_profile = "entry/src/main/module.json"
18  ets2abc = true
19  source_dir = "entry/src/main/ets"
20}
21
22ohos_app_scope("ams_system_dialog_app_profile") {
23  app_profile = "AppScope/app.json"
24  sources = [ "AppScope/resources" ]
25}
26
27ohos_resources("ams_system_dialog_resources") {
28  sources = [ "entry/src/main/resources" ]
29  deps = [ ":ams_system_dialog_app_profile" ]
30  hap_profile = "entry/src/main/module.json"
31}
32
33ohos_app("ams_system_dialog_hap") {
34  hap_name = "ams_system_dialog"
35  subsystem_name = "ability"
36  part_name = "ability_runtime"
37  deps = [
38    ":intent_debug_app_products_js_assets",
39    ":intent_debug_app_products_resources",
40    ":ams_system_dialog_js_assets",
41    ":ams_system_dialog_resources"
42  ]
43  module_install_dir = "app/com.ohos.amsdialog"
44  publicity_file = "publicity.xml"
45  certificate_profile = "signature/openharmony_sx.p7b"
46  hap_list = [
47    "ams_system_dialog-default-default-unsigned:intent_debug_app",
48    "ams_system_dialog-entry-default-unsigned:ams_system_dialog"
49  ]
50  module_install_dir = "app/com.ohos.amsdialog"
51}
52
53ohos_js_assets("intent_debug_app_products_js_assets") {
54  hap_profile = "feature/src/main/module.json"
55  ets2abc = true
56  source_dir = "feature/src/main/ets"
57}
58
59ohos_resources("intent_debug_app_products_resources") {
60  sources = [ "feature/src/main/resources" ]
61  deps = [ ":ams_system_dialog_app_profile" ]
62  hap_profile = "feature/src/main/module.json"
63}
64
65group("dialog_hap") {
66  deps = [ ":ams_system_dialog_hap"
67  ]
68}
69