2021-06-01 16:05:29 +00:00
|
|
|
# Copyright (c) 2021 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.
|
|
|
|
|
2022-05-28 07:43:51 +00:00
|
|
|
aafwk_path = "//foundation/ability/ability_runtime"
|
2022-05-12 09:15:28 +00:00
|
|
|
appexecfwk_path = "//foundation/bundlemanager/bundle_framework"
|
2021-06-01 16:05:29 +00:00
|
|
|
|
|
|
|
libs_path = "${appexecfwk_path}/libs"
|
|
|
|
common_path = "${appexecfwk_path}/common"
|
|
|
|
services_path = "${appexecfwk_path}/services"
|
2022-05-05 07:03:11 +00:00
|
|
|
kits_path = "${appexecfwk_path}/interfaces/kits"
|
2021-06-01 16:05:29 +00:00
|
|
|
innerkits_path = "${appexecfwk_path}/interfaces/innerkits"
|
2022-05-09 11:53:38 +00:00
|
|
|
inner_api_path = "${appexecfwk_path}/interfaces/inner_api"
|
2021-06-01 16:05:29 +00:00
|
|
|
tools_path = "${appexecfwk_path}/tools"
|
2022-05-28 07:43:51 +00:00
|
|
|
aafwk_innerkits_path =
|
|
|
|
"//foundation/ability/ability_runtime/interfaces/innerkits"
|
2022-04-12 01:51:49 +00:00
|
|
|
use_pre_bundle_profile = false
|
2022-03-04 11:40:43 +00:00
|
|
|
declare_args() {
|
|
|
|
bundle_framework_graphics = true
|
2022-04-08 12:37:14 +00:00
|
|
|
bundle_framework_free_install = 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-03-24 03:46:30 +00:00
|
|
|
device_manager_enable = true
|
2022-04-14 07:54:40 +00:00
|
|
|
global_resmgr_enable = true
|
2022-03-20 03:12:52 +00:00
|
|
|
hicollie_enable = true
|
2022-04-22 03:24:56 +00:00
|
|
|
hisysevent_enable = true
|
2022-03-20 03:12:52 +00:00
|
|
|
|
2022-04-07 13:52:54 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.aafwk_ability_runtime)) {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.customization_config_policy)) {
|
|
|
|
configpolicy_enable = false
|
2022-03-20 03:12:52 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 03:46:30 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.distributedhardware_device_manager_base)) {
|
|
|
|
device_manager_enable = false
|
|
|
|
}
|
|
|
|
|
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
|
2022-04-14 07:54:40 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 07:19:58 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.hiviewdfx_hicollie_native)) {
|
|
|
|
hicollie_enable = false
|
|
|
|
}
|
|
|
|
|
2022-04-08 12:37:14 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
(!defined(global_parts_info.powermgr_power_manager_native) ||
|
|
|
|
!defined(global_parts_info.powermgr_battery_manager_native) ||
|
2022-04-11 11:27:48 +00:00
|
|
|
!defined(global_parts_info.powermgr_display_manager_native))) {
|
2022-04-08 12:37:14 +00:00
|
|
|
bundle_framework_free_install = false
|
|
|
|
}
|
|
|
|
|
2022-04-22 03:24:56 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.hiviewdfx_hisysevent_native)) {
|
|
|
|
hisysevent_enable = false
|
|
|
|
}
|
|
|
|
|
2022-03-18 06:58:26 +00:00
|
|
|
print("bundle_framework_graphics = " + "$bundle_framework_graphics")
|
2022-04-08 12:37:14 +00:00
|
|
|
print("bundle_framework_free_install = " + "$bundle_framework_free_install")
|
2022-04-07 13:52:54 +00:00
|
|
|
print("ability_runtime_enable = " + "$ability_runtime_enable")
|
2022-03-26 07:19:58 +00:00
|
|
|
print("account_enable = " + "$account_enable")
|
|
|
|
print("configpolicy_enable = " + "$configpolicy_enable")
|
2022-03-24 03:46:30 +00:00
|
|
|
print("device_manager_enable = " + "$device_manager_enable")
|
2022-04-14 07:54:40 +00:00
|
|
|
print("global_resmgr_enable = " + "$global_resmgr_enable")
|
2022-03-20 03:12:52 +00:00
|
|
|
print("hicollie_enable = " + "$hicollie_enable")
|
|
|
|
print("support_jsapi = " + "$support_jsapi")
|
2022-04-22 03:24:56 +00:00
|
|
|
print("hisysevent_enable = " + "$hisysevent_enable")
|
2022-03-04 11:40:43 +00:00
|
|
|
}
|