2023-01-31 14:00:07 +00:00
|
|
|
# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
|
2021-06-02 00:05:29 +08: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 16:02:13 +08: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 = []
|
|
|
|
}
|
|
|
|
|
2022-06-08 17:23:08 +08:00
|
|
|
appexecfwk_path = "//foundation/bundlemanager/bundle_framework"
|
2021-06-02 00:05:29 +08:00
|
|
|
common_path = "${appexecfwk_path}/common"
|
|
|
|
services_path = "${appexecfwk_path}/services"
|
2022-05-05 15:03:11 +08:00
|
|
|
kits_path = "${appexecfwk_path}/interfaces/kits"
|
2022-05-09 19:53:38 +08:00
|
|
|
inner_api_path = "${appexecfwk_path}/interfaces/inner_api"
|
2021-06-02 00:05:29 +08:00
|
|
|
tools_path = "${appexecfwk_path}/tools"
|
2023-02-14 10:00:50 +00:00
|
|
|
base_path = "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base"
|
2022-10-24 21:10:23 +08:00
|
|
|
core_path = "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core"
|
2022-06-08 17:23:08 +08:00
|
|
|
|
2022-03-04 19:40:43 +08:00
|
|
|
declare_args() {
|
|
|
|
bundle_framework_graphics = true
|
2022-04-08 20:37:14 +08:00
|
|
|
bundle_framework_free_install = true
|
2022-06-06 11:19:38 +08:00
|
|
|
bundle_framework_default_app = true
|
2022-07-12 10:31:01 +08:00
|
|
|
bundle_framework_launcher = true
|
|
|
|
bundle_framework_sandbox_app = true
|
2022-08-02 21:09:57 +08:00
|
|
|
bundle_framework_quick_fix = true
|
2022-08-26 16:48:43 +08:00
|
|
|
bundle_framework_app_control = true
|
|
|
|
distributed_bundle_framework = true
|
2023-01-31 14:00:07 +00:00
|
|
|
bundle_framework_overlay_install = true
|
2022-03-20 11:12:52 +08:00
|
|
|
|
2022-04-07 21:52:54 +08:00
|
|
|
ability_runtime_enable = true
|
2022-03-26 15:19:58 +08:00
|
|
|
account_enable = true
|
|
|
|
configpolicy_enable = true
|
2022-03-24 11:46:30 +08:00
|
|
|
device_manager_enable = true
|
2022-04-14 15:54:40 +08:00
|
|
|
global_resmgr_enable = true
|
2022-07-14 19:23:43 +08:00
|
|
|
global_i18n_enable = true
|
2022-03-20 11:12:52 +08:00
|
|
|
hicollie_enable = true
|
2022-04-22 11:24:56 +08:00
|
|
|
hisysevent_enable = true
|
2022-08-22 14:37:34 +08:00
|
|
|
use_pre_bundle_profile = true
|
2022-03-20 11:12:52 +08:00
|
|
|
|
2022-04-07 21:52:54 +08:00
|
|
|
if (defined(global_parts_info) &&
|
2022-06-11 10:55:34 +08:00
|
|
|
!defined(global_parts_info.ability_ability_runtime)) {
|
2022-04-07 21:52:54 +08:00
|
|
|
ability_runtime_enable = false
|
2022-04-08 20:37:14 +08:00
|
|
|
bundle_framework_free_install = false
|
2022-04-07 21:52:54 +08:00
|
|
|
}
|
|
|
|
|
2022-03-20 11:12:52 +08:00
|
|
|
if (defined(global_parts_info) &&
|
2022-05-05 16:02:31 +08:00
|
|
|
!defined(global_parts_info.account_os_account)) {
|
2022-03-26 15:19:58 +08:00
|
|
|
account_enable = false
|
2022-04-08 20:37:14 +08:00
|
|
|
bundle_framework_free_install = false
|
2022-03-26 15:19:58 +08:00
|
|
|
}
|
|
|
|
|
2022-09-23 17:08:04 +08:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
|
|
|
|
distributed_bundle_framework = false
|
|
|
|
}
|
|
|
|
|
2022-03-26 15:19:58 +08:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.customization_config_policy)) {
|
|
|
|
configpolicy_enable = false
|
2022-03-20 11:12:52 +08:00
|
|
|
}
|
|
|
|
|
2022-03-24 11:46:30 +08:00
|
|
|
if (defined(global_parts_info) &&
|
2022-06-09 10:44:41 +08:00
|
|
|
!defined(global_parts_info.distributedhardware_device_manager)) {
|
2022-03-24 11:46:30 +08:00
|
|
|
device_manager_enable = false
|
|
|
|
}
|
|
|
|
|
2022-04-14 15:54:40 +08:00
|
|
|
if (defined(global_parts_info) &&
|
2022-04-28 20:27:58 +08:00
|
|
|
!defined(global_parts_info.global_resource_management)) {
|
2022-04-14 16:46:10 +08:00
|
|
|
global_resmgr_enable = false
|
2022-04-14 15:54:40 +08:00
|
|
|
}
|
|
|
|
|
2022-07-14 19:23:43 +08:00
|
|
|
if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
|
|
|
|
global_i18n_enable = false
|
|
|
|
}
|
|
|
|
|
2022-03-26 15:19:58 +08:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.hiviewdfx_hicollie_native)) {
|
|
|
|
hicollie_enable = false
|
|
|
|
}
|
|
|
|
|
2022-04-08 20:37:14 +08:00
|
|
|
if (defined(global_parts_info) &&
|
2022-07-15 18:18:21 +08:00
|
|
|
(!defined(global_parts_info.powermgr_power_manager) ||
|
2022-07-19 15:16:31 +08:00
|
|
|
!defined(global_parts_info.powermgr_battery_manager) ||
|
2022-07-13 15:11:20 +08:00
|
|
|
!defined(global_parts_info.powermgr_display_manager) ||
|
2022-06-22 19:59:33 +08:00
|
|
|
!defined(global_parts_info.resourceschedule_device_usage_statistics))) {
|
2022-04-08 20:37:14 +08:00
|
|
|
bundle_framework_free_install = false
|
|
|
|
}
|
|
|
|
|
2022-04-22 11:24:56 +08:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.hiviewdfx_hisysevent_native)) {
|
|
|
|
hisysevent_enable = false
|
|
|
|
}
|
2022-03-04 19:40:43 +08:00
|
|
|
}
|
2022-08-12 16:28:18 +08: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 16:48:43 +08:00
|
|
|
print("distributed_bundle_framework = " + "$distributed_bundle_framework")
|
2022-08-12 16:28:18 +08:00
|
|
|
print("ability_runtime_enable = " + "$ability_runtime_enable")
|
|
|
|
print("account_enable = " + "$account_enable")
|
|
|
|
print("configpolicy_enable = " + "$configpolicy_enable")
|
|
|
|
print("device_manager_enable = " + "$device_manager_enable")
|
|
|
|
print("global_resmgr_enable = " + "$global_resmgr_enable")
|
|
|
|
print("hicollie_enable = " + "$hicollie_enable")
|
|
|
|
print("support_jsapi = " + "$support_jsapi")
|
|
|
|
print("hisysevent_enable = " + "$hisysevent_enable")
|
2023-03-16 20:17:51 +08:00
|
|
|
print(
|
|
|
|
"bundle_framework_overlay_install = " + "$bundle_framework_overlay_install")
|