2023-01-31 14:00:07 +00:00
|
|
|
# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
|
2021-06-01 16:05:29 +00:00
|
|
|
# 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.
|
|
|
|
|
2022-12-03 08:02:13 +00:00
|
|
|
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 = []
|
|
|
|
}
|
|
|
|
|
2023-03-29 01:16:12 +00:00
|
|
|
bundle_framework_path = "//foundation/bundlemanager/bundle_framework"
|
2023-07-13 11:33:22 +00:00
|
|
|
ecological_rule_mgr_path = "//foundation/bundlemanager/ecological_rule_mgr/interfaces/innerkits/include"
|
2023-03-29 01:16:12 +00:00
|
|
|
common_path = "${bundle_framework_path}/common"
|
2023-09-12 03:49:59 +00:00
|
|
|
fuzz_test_path = "bundle_framework/bundle_framework"
|
2023-03-29 01:16:12 +00:00
|
|
|
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"
|
2023-03-29 08:16:35 +00:00
|
|
|
base_path = "${bundle_framework_path}/interfaces/inner_api/appexecfwk_base"
|
|
|
|
core_path = "${bundle_framework_path}/interfaces/inner_api/appexecfwk_core"
|
2023-05-19 06:42:38 +00:00
|
|
|
extension_path =
|
|
|
|
"${bundle_framework_path}/interfaces/inner_api/bundlemgr_extension"
|
2022-06-08 09:23:08 +00:00
|
|
|
|
2022-03-04 11:40:43 +00:00
|
|
|
declare_args() {
|
2023-05-31 09:59:00 +00:00
|
|
|
bundle_framework_power_mgr_enable = true
|
2022-03-04 11:40:43 +00:00
|
|
|
bundle_framework_graphics = true
|
2022-04-08 12:37:14 +00:00
|
|
|
bundle_framework_free_install = true
|
2022-06-06 03:19:38 +00:00
|
|
|
bundle_framework_default_app = true
|
2022-07-12 02:31:01 +00:00
|
|
|
bundle_framework_launcher = true
|
|
|
|
bundle_framework_sandbox_app = true
|
2022-08-02 13:09:57 +00:00
|
|
|
bundle_framework_quick_fix = true
|
2022-08-26 08:48:43 +00:00
|
|
|
bundle_framework_app_control = true
|
|
|
|
distributed_bundle_framework = true
|
2023-01-31 14:00:07 +00:00
|
|
|
bundle_framework_overlay_install = true
|
2023-10-06 09:09:24 +00:00
|
|
|
bundle_framework_bundle_resource = true
|
2022-03-20 03:12:52 +00:00
|
|
|
|
2022-04-07 13:52:54 +00:00
|
|
|
ability_runtime_enable = true
|
2022-03-26 07:19:58 +00:00
|
|
|
account_enable = true
|
|
|
|
configpolicy_enable = true
|
2022-04-14 07:54:40 +00:00
|
|
|
global_resmgr_enable = true
|
2022-07-14 11:23:43 +00:00
|
|
|
global_i18n_enable = true
|
2022-03-20 03:12:52 +00:00
|
|
|
hicollie_enable = true
|
2022-04-22 03:24:56 +00:00
|
|
|
hisysevent_enable = true
|
2023-05-10 08:01:12 +00:00
|
|
|
storage_service_enable = true
|
2022-08-22 06:37:34 +00:00
|
|
|
use_pre_bundle_profile = true
|
2023-04-24 12:31:48 +00:00
|
|
|
window_enable = true
|
2023-05-15 05:45:33 +00:00
|
|
|
dlp_permission_enable = true
|
2023-06-08 07:31:26 +00:00
|
|
|
code_signature_enable = true
|
2023-10-30 04:26:27 +00:00
|
|
|
code_encryption_enable = true
|
2023-07-13 11:33:22 +00:00
|
|
|
ecologic_rule_mgr_enabled = true
|
2023-11-07 14:16:31 +00:00
|
|
|
verify_abc_enabled = true
|
2023-11-16 07:16:17 +00:00
|
|
|
udmf_enabled = true
|
2022-03-20 03:12:52 +00:00
|
|
|
|
2022-04-07 13:52:54 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2022-06-11 02:55:34 +00:00
|
|
|
!defined(global_parts_info.ability_ability_runtime)) {
|
2022-04-07 13:52:54 +00:00
|
|
|
ability_runtime_enable = false
|
2022-04-08 12:37:14 +00:00
|
|
|
bundle_framework_free_install = false
|
2022-04-07 13:52:54 +00:00
|
|
|
}
|
|
|
|
|
2022-03-20 03:12:52 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2022-05-05 08:02:31 +00:00
|
|
|
!defined(global_parts_info.account_os_account)) {
|
2022-03-26 07:19:58 +00:00
|
|
|
account_enable = false
|
2022-04-08 12:37:14 +00:00
|
|
|
bundle_framework_free_install = false
|
2022-03-26 07:19:58 +00:00
|
|
|
}
|
|
|
|
|
2022-09-23 09:08:04 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
|
|
|
|
distributed_bundle_framework = false
|
|
|
|
}
|
|
|
|
|
2022-03-26 07:19:58 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.customization_config_policy)) {
|
|
|
|
configpolicy_enable = false
|
2022-03-20 03:12:52 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 07:54:40 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2022-04-28 12:27:58 +00:00
|
|
|
!defined(global_parts_info.global_resource_management)) {
|
2022-04-14 08:46:10 +00:00
|
|
|
global_resmgr_enable = false
|
2023-10-06 10:24:33 +00:00
|
|
|
bundle_framework_bundle_resource = false
|
2022-04-14 07:54:40 +00:00
|
|
|
}
|
|
|
|
|
2022-07-14 11:23:43 +00:00
|
|
|
if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
|
|
|
|
global_i18n_enable = false
|
|
|
|
}
|
|
|
|
|
2022-03-26 07:19:58 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2023-06-25 08:20:01 +00:00
|
|
|
!defined(global_parts_info.hiviewdfx_hicollie)) {
|
2022-03-26 07:19:58 +00:00
|
|
|
hicollie_enable = false
|
|
|
|
}
|
|
|
|
|
2022-04-08 12:37:14 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2022-07-15 10:18:21 +00:00
|
|
|
(!defined(global_parts_info.powermgr_power_manager) ||
|
2022-07-19 07:16:31 +00:00
|
|
|
!defined(global_parts_info.powermgr_battery_manager) ||
|
2022-07-13 07:11:20 +00:00
|
|
|
!defined(global_parts_info.powermgr_display_manager) ||
|
2022-06-22 11:59:33 +00:00
|
|
|
!defined(global_parts_info.resourceschedule_device_usage_statistics))) {
|
2022-04-08 12:37:14 +00:00
|
|
|
bundle_framework_free_install = false
|
|
|
|
}
|
|
|
|
|
2023-05-31 09:59:00 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-04-22 03:24:56 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2023-08-08 06:33:31 +00:00
|
|
|
!defined(global_parts_info.hiviewdfx_hisysevent)) {
|
2022-04-22 03:24:56 +00:00
|
|
|
hisysevent_enable = false
|
|
|
|
}
|
2023-04-24 12:31:48 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.window_window_manager)) {
|
|
|
|
window_enable = false
|
|
|
|
}
|
2023-05-10 08:01:12 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.filemanagement_storage_service)) {
|
|
|
|
storage_service_enable = false
|
|
|
|
}
|
2023-05-15 05:45:33 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.security_dlp_permission_service)) {
|
|
|
|
dlp_permission_enable = false
|
|
|
|
}
|
2023-06-08 07:31:26 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.security_code_signature)) {
|
|
|
|
code_signature_enable = false
|
|
|
|
}
|
2023-07-13 11:33:22 +00:00
|
|
|
|
2023-10-30 04:26:27 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.security_code_crypto_metadata_process)) {
|
|
|
|
code_encryption_enable = false
|
|
|
|
}
|
|
|
|
|
2023-07-13 11:33:22 +00:00
|
|
|
if (defined(global_parts_info) &&
|
2023-09-05 08:15:54 +00:00
|
|
|
!defined(global_parts_info.bundlemanager_ecological_rule_manager)) {
|
2023-07-13 11:33:22 +00:00
|
|
|
ecologic_rule_mgr_enabled = false
|
|
|
|
}
|
2023-08-17 08:19:30 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.multimedia_image_framework)) {
|
|
|
|
bundle_framework_graphics = false
|
|
|
|
}
|
2023-11-07 14:16:31 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.arkcompiler_runtime_core)) {
|
|
|
|
verify_abc_enabled = false
|
|
|
|
}
|
2023-11-16 07:16:17 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.distributeddatamgr_udmf)) {
|
|
|
|
udmf_enabled = false
|
|
|
|
}}
|
2022-08-12 08:28:18 +00:00
|
|
|
|
2023-06-01 01:05:22 +00:00
|
|
|
print("bundle_framework_power_mgr_enable = " +
|
|
|
|
"$bundle_framework_power_mgr_enable")
|
2022-08-12 08:28:18 +00:00
|
|
|
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")
|
2022-08-26 08:48:43 +00:00
|
|
|
print("distributed_bundle_framework = " + "$distributed_bundle_framework")
|
2022-08-12 08:28:18 +00:00
|
|
|
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")
|
2023-10-07 04:13:07 +00:00
|
|
|
print(
|
|
|
|
"bundle_framework_overlay_install = " + "$bundle_framework_overlay_install")
|
|
|
|
print(
|
|
|
|
"bundle_framework_bundle_resource = " + "$bundle_framework_bundle_resource")
|
2023-11-07 14:16:31 +00:00
|
|
|
print("verify_abc_enabled = " + "$verify_abc_enabled")
|