• 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
14bundle_framework_path = "//foundation/bundlemanager/bundle_framework"
15ecological_rule_mgr_path = "//foundation/bundlemanager/ecological_rule_mgr/interfaces/innerkits/include"
16common_path = "${bundle_framework_path}/common"
17fuzz_test_path = "bundle_framework/bundle_framework"
18test_path = "${bundle_framework_path}/test"
19services_path = "${bundle_framework_path}/services"
20kits_path = "${bundle_framework_path}/interfaces/kits"
21inner_api_path = "${bundle_framework_path}/interfaces/inner_api"
22tools_path = "${bundle_framework_path}/tools"
23base_path = "${bundle_framework_path}/interfaces/inner_api/appexecfwk_base"
24core_path = "${bundle_framework_path}/interfaces/inner_api/appexecfwk_core"
25extension_path =
26    "${bundle_framework_path}/interfaces/inner_api/bundlemgr_extension"
27
28declare_args() {
29  bundle_framework_power_mgr_enable = true
30  bundle_framework_graphics = true
31  bundle_framework_free_install = true
32  bundle_framework_default_app = true
33  bundle_framework_launcher = true
34  bundle_framework_sandbox_app = true
35  bundle_framework_quick_fix = true
36  bundle_framework_app_control = true
37  distributed_bundle_framework = true
38  bundle_framework_overlay_install = true
39  bundle_framework_bundle_resource = true
40  bundle_framework_form_dimension_2_3 = false
41  bundle_framework_form_dimension_3_3 = false
42
43  ability_runtime_enable = true
44  account_enable = true
45  configpolicy_enable = true
46  global_resmgr_enable = true
47  global_i18n_enable = true
48  hicollie_enable = true
49  hisysevent_enable = true
50  storage_service_enable = true
51  use_pre_bundle_profile = true
52  window_enable = true
53  dlp_permission_enable = true
54  code_signature_enable = true
55  code_encryption_enable = true
56  verify_abc_enabled = true
57  check_eldir_enabled = true
58  udmf_enabled = true
59  bms_device_info_manager_part_enabled = true
60  app_domain_verify_enabled = true
61  device_usage_statistics_enabled = true
62  dfx_sigdump_handler_enabled = true
63  webview_enable = true
64  user_auth_framework_impl_enabled = true
65
66  if (defined(global_parts_info) &&
67      !defined(global_parts_info.resourceschedule_device_usage_statistics)) {
68    device_usage_statistics_enabled = false
69    bundle_framework_free_install = false
70  }
71
72  if (defined(global_parts_info) &&
73      !defined(global_parts_info.ability_ability_runtime)) {
74    ability_runtime_enable = false
75    bundle_framework_free_install = false
76  }
77
78  if (defined(global_parts_info) &&
79      !defined(global_parts_info.account_os_account)) {
80    account_enable = false
81    bundle_framework_free_install = false
82  }
83
84  if (defined(global_parts_info) &&
85      !defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
86    distributed_bundle_framework = false
87  }
88
89  if (defined(global_parts_info) &&
90      !defined(global_parts_info.customization_config_policy)) {
91    configpolicy_enable = false
92  }
93
94  if (defined(global_parts_info) &&
95      !defined(global_parts_info.global_resource_management)) {
96    global_resmgr_enable = false
97    bundle_framework_bundle_resource = false
98  }
99
100  if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
101    global_i18n_enable = false
102  }
103
104  if (defined(global_parts_info) &&
105      !defined(global_parts_info.hiviewdfx_hicollie)) {
106    hicollie_enable = false
107  }
108
109  if (defined(global_parts_info) &&
110      (!defined(global_parts_info.powermgr_power_manager) ||
111       !defined(global_parts_info.powermgr_battery_manager) ||
112       !defined(global_parts_info.powermgr_display_manager) ||
113       !defined(global_parts_info.resourceschedule_device_usage_statistics))) {
114    bundle_framework_free_install = false
115  }
116
117  if (defined(global_parts_info) &&
118      (!defined(global_parts_info.powermgr_power_manager) ||
119       !defined(global_parts_info.powermgr_battery_manager) ||
120       !defined(global_parts_info.powermgr_display_manager))) {
121    bundle_framework_power_mgr_enable = false
122  }
123
124  if (defined(global_parts_info) &&
125      !defined(global_parts_info.hiviewdfx_hisysevent)) {
126    hisysevent_enable = false
127  }
128
129  if (defined(global_parts_info) &&
130      !defined(global_parts_info.window_window_manager)) {
131    window_enable = false
132  }
133
134  if (defined(global_parts_info) &&
135      !defined(global_parts_info.filemanagement_storage_service)) {
136    storage_service_enable = false
137  }
138
139  if (defined(global_parts_info) &&
140      !defined(global_parts_info.security_dlp_permission_service)) {
141    dlp_permission_enable = false
142  }
143
144  if (defined(global_parts_info) &&
145      !defined(global_parts_info.security_code_signature)) {
146    code_signature_enable = false
147  }
148
149  if (defined(global_parts_info) &&
150      !defined(global_parts_info.security_code_crypto_metadata_process)) {
151    code_encryption_enable = false
152  }
153
154  if (defined(global_parts_info) &&
155      !defined(global_parts_info.multimedia_image_framework)) {
156    bundle_framework_graphics = false
157  }
158
159  if (defined(global_parts_info) &&
160      !defined(global_parts_info.arkcompiler_runtime_core)) {
161    verify_abc_enabled = false
162  }
163  if (defined(global_parts_info) &&
164      !defined(global_parts_info.distributeddatamgr_udmf)) {
165    udmf_enabled = false
166  }
167
168  if (defined(global_parts_info) &&
169      !defined(global_parts_info.deviceprofile_device_info_manager)) {
170    bms_device_info_manager_part_enabled = false
171  }
172
173  if (defined(global_parts_info) &&
174      !defined(global_parts_info.bundlemanager_app_domain_verify)) {
175    app_domain_verify_enabled = false
176  }
177
178  if (defined(global_parts_info) &&
179      !defined(global_parts_info.hiviewdfx_faultloggerd)) {
180    dfx_sigdump_handler_enabled = false
181  }
182
183  if (defined(global_parts_info) && !defined(global_parts_info.web_webview)) {
184    webview_enable = false
185  }
186
187  if (defined(global_parts_info) &&
188      !defined(global_parts_info.useriam_user_auth_framework)) {
189    user_auth_framework_impl_enabled = false
190  }
191}
192
193print("bundle_framework_power_mgr_enable = " +
194      "$bundle_framework_power_mgr_enable")
195print("bundle_framework_graphics = " + "$bundle_framework_graphics")
196print("bundle_framework_free_install = " + "$bundle_framework_free_install")
197print("bundle_framework_default_app = " + "$bundle_framework_default_app")
198print("bundle_framework_launcher = " + "$bundle_framework_launcher")
199print("bundle_framework_sandbox_app = " + "$bundle_framework_sandbox_app")
200print("bundle_framework_quick_fix = " + "$bundle_framework_quick_fix")
201print("bundle_framework_app_control = " + "$bundle_framework_app_control")
202print("distributed_bundle_framework = " + "$distributed_bundle_framework")
203print("ability_runtime_enable = " + "$ability_runtime_enable")
204print("account_enable = " + "$account_enable")
205print("configpolicy_enable = " + "$configpolicy_enable")
206print("global_resmgr_enable = " + "$global_resmgr_enable")
207print("hicollie_enable = " + "$hicollie_enable")
208print("support_jsapi = " + "$support_jsapi")
209print("hisysevent_enable = " + "$hisysevent_enable")
210print(
211    "bundle_framework_overlay_install = " + "$bundle_framework_overlay_install")
212print(
213    "bundle_framework_bundle_resource = " + "$bundle_framework_bundle_resource")
214print("verify_abc_enabled = " + "$verify_abc_enabled")
215print(
216    "user_auth_framework_impl_enabled = " + "$user_auth_framework_impl_enabled")
217