-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappexecfwk.gni
221 lines (193 loc) · 7.84 KB
/
appexecfwk.gni
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
VENDOR_CONFIG_PATH = rebase_path(
"//vendor/${product_company}/${product_name}/foundation/bundlemanager/bundle_framework/appexecfwk_impl.gni")
CMD = "if [ -f ${VENDOR_CONFIG_PATH} ]; then echo true; else echo false; fi"
vendor_config_exist =
exec_script("//build/lite/run_shell_cmd.py", [ CMD ], "value")
if (vendor_config_exist) {
import(
"//vendor/${product_company}/${product_name}/foundation/bundlemanager/bundle_framework/appexecfwk_impl.gni")
} else {
bundle_mgr_impl_sources = []
bundle_mgr_impl_include_dirs = []
}
bundle_framework_path = "//foundation/bundlemanager/bundle_framework"
ecological_rule_mgr_path = "//foundation/bundlemanager/ecological_rule_mgr/interfaces/innerkits/include"
common_path = "${bundle_framework_path}/common"
fuzz_test_path = "bundle_framework/bundle_framework"
services_path = "${bundle_framework_path}/services"
kits_path = "${bundle_framework_path}/interfaces/kits"
inner_api_path = "${bundle_framework_path}/interfaces/inner_api"
tools_path = "${bundle_framework_path}/tools"
base_path = "${bundle_framework_path}/interfaces/inner_api/appexecfwk_base"
core_path = "${bundle_framework_path}/interfaces/inner_api/appexecfwk_core"
extension_path =
"${bundle_framework_path}/interfaces/inner_api/bundlemgr_extension"
declare_args() {
bundle_framework_power_mgr_enable = true
bundle_framework_graphics = true
bundle_framework_free_install = true
bundle_framework_default_app = true
bundle_framework_launcher = true
bundle_framework_sandbox_app = true
bundle_framework_quick_fix = true
bundle_framework_app_control = true
distributed_bundle_framework = true
bundle_framework_overlay_install = true
bundle_framework_bundle_resource = true
bundle_framework_form_dimension_2_3 = false
bundle_framework_form_dimension_3_3 = false
ability_runtime_enable = true
account_enable = true
configpolicy_enable = true
global_resmgr_enable = true
global_i18n_enable = true
hicollie_enable = true
hisysevent_enable = true
storage_service_enable = true
use_pre_bundle_profile = true
window_enable = true
dlp_permission_enable = true
code_signature_enable = true
code_encryption_enable = true
verify_abc_enabled = true
check_eldir_enabled = true
udmf_enabled = true
bms_device_info_manager_part_enabled = true
app_domain_verify_enabled = true
device_usage_statistics_enabled = true
dfx_sigdump_handler_enabled = true
webview_enable = true
if (defined(global_parts_info) &&
!defined(global_parts_info.resourceschedule_device_usage_statistics)) {
device_usage_statistics_enabled = false
bundle_framework_free_install = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.ability_ability_runtime)) {
ability_runtime_enable = false
bundle_framework_free_install = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.account_os_account)) {
account_enable = false
bundle_framework_free_install = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
distributed_bundle_framework = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.customization_config_policy)) {
configpolicy_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.global_resource_management)) {
global_resmgr_enable = false
bundle_framework_bundle_resource = false
}
if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
global_i18n_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.hiviewdfx_hicollie)) {
hicollie_enable = false
}
if (defined(global_parts_info) &&
(!defined(global_parts_info.powermgr_power_manager) ||
!defined(global_parts_info.powermgr_battery_manager) ||
!defined(global_parts_info.powermgr_display_manager) ||
!defined(global_parts_info.resourceschedule_device_usage_statistics))) {
bundle_framework_free_install = false
}
if (defined(global_parts_info) &&
(!defined(global_parts_info.powermgr_power_manager) ||
!defined(global_parts_info.powermgr_battery_manager) ||
!defined(global_parts_info.powermgr_display_manager))) {
bundle_framework_power_mgr_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.hiviewdfx_hisysevent)) {
hisysevent_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.window_window_manager)) {
window_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.filemanagement_storage_service)) {
storage_service_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.security_dlp_permission_service)) {
dlp_permission_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.security_code_signature)) {
code_signature_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.security_code_crypto_metadata_process)) {
code_encryption_enable = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.multimedia_image_framework)) {
bundle_framework_graphics = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.arkcompiler_runtime_core)) {
verify_abc_enabled = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.distributeddatamgr_udmf)) {
udmf_enabled = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.deviceprofile_device_info_manager)) {
bms_device_info_manager_part_enabled = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.bundlemanager_app_domain_verify)) {
app_domain_verify_enabled = false
}
if (defined(global_parts_info) &&
!defined(global_parts_info.hiviewdfx_faultloggerd)) {
dfx_sigdump_handler_enabled = false
}
if (defined(global_parts_info) && !defined(global_parts_info.web_webview)) {
webview_enable = false
}
}
print("bundle_framework_power_mgr_enable = " +
"$bundle_framework_power_mgr_enable")
print("bundle_framework_graphics = " + "$bundle_framework_graphics")
print("bundle_framework_free_install = " + "$bundle_framework_free_install")
print("bundle_framework_default_app = " + "$bundle_framework_default_app")
print("bundle_framework_launcher = " + "$bundle_framework_launcher")
print("bundle_framework_sandbox_app = " + "$bundle_framework_sandbox_app")
print("bundle_framework_quick_fix = " + "$bundle_framework_quick_fix")
print("bundle_framework_app_control = " + "$bundle_framework_app_control")
print("distributed_bundle_framework = " + "$distributed_bundle_framework")
print("ability_runtime_enable = " + "$ability_runtime_enable")
print("account_enable = " + "$account_enable")
print("configpolicy_enable = " + "$configpolicy_enable")
print("global_resmgr_enable = " + "$global_resmgr_enable")
print("hicollie_enable = " + "$hicollie_enable")
print("support_jsapi = " + "$support_jsapi")
print("hisysevent_enable = " + "$hisysevent_enable")
print(
"bundle_framework_overlay_install = " + "$bundle_framework_overlay_install")
print(
"bundle_framework_bundle_resource = " + "$bundle_framework_bundle_resource")
print("verify_abc_enabled = " + "$verify_abc_enabled")