1# Copyright (c) 2021-2022 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 14ability_runtime_path = "//foundation/ability/ability_runtime" 15ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi" 16ability_base_path = "//foundation/ability/ability_base" 17form_fwk_path = "//foundation/ability/form_fwk" 18ability_runtime_innerkits_path = "${ability_runtime_path}/interfaces/inner_api" 19ability_runtime_native_path = "${ability_runtime_path}/frameworks/native" 20ability_runtime_services_path = "${ability_runtime_path}/services" 21ability_runtime_test_path = "${ability_runtime_path}/test" 22ability_runtime_system_test_app_path = 23 "${ability_runtime_path}/test/resource/amssystemtestability/abilitySrc" 24ace_engine_path = "//foundation/arkui/ace_engine" 25 26bundlefwk_path = "//foundation/bundlemanager/bundle_framework" 27bundlefwk_inner_api_path = "${bundlefwk_path}/interfaces/inner_api" 28 29multimedia_path = "//foundation/multimedia/image_framework" 30multimodalinput_path = "//foundation/multimodalinput/input" 31windowmanager_path = "//foundation/window/window_manager" 32graphic_path = "//foundation/graphic/graphic_2d" 33global_path = "//base/global" 34distributedschedule_path = "//foundation/systemabilitymgr" 35notification_path = "//base/notification" 36ans_core_path = 37 "${notification_path}/distributed_notification_service/frameworks/core" 38distributeddatamgr_path = "//foundation/distributeddatamgr" 39form_fwk_napi_path = "${form_fwk_path}/frameworks/js/napi" 40ability_base_kits_path = "${ability_base_path}/interfaces/kits/native" 41ability_base_native_path = "${ability_base_path}/frameworks/native" 42appspawn_path = "//base/startup/appspawn" 43init_path = "//base/startup/init" 44ipc_native_path = "//foundation/communication/ipc/ipc/native" 45third_party_path = "//third_party" 46 47declare_args() { 48 background_task_mgr_continuous_task_enable = true 49 resource_schedule_service_enable = true 50 ability_runtime_graphics = true 51 ability_runtime_power = true 52 ability_runtime_relational = true 53 ability_runtime_ces = true 54 ability_runtime_resource = true 55 ability_runtime_appspawn = true 56 efficiency_manager = true 57 ability_command_for_test = false 58 ability_runtime_feature_coverage = false 59 60 if (!defined(global_parts_info) || 61 defined(global_parts_info.account_os_account)) { 62 os_account_part_enabled = true 63 } else { 64 os_account_part_enabled = false 65 } 66 67 if (defined(global_parts_info) && 68 !defined(global_parts_info.resourceschedule_background_task_mgr)) { 69 background_task_mgr_continuous_task_enable = false 70 } 71 72 if (defined(global_parts_info) && 73 !defined(global_parts_info.resourceschedule_resource_schedule_service)) { 74 resource_schedule_service_enable = false 75 } 76 77 if (defined(global_parts_info) && 78 !defined(global_parts_info.resourceschedule_efficiency_manager)) { 79 efficiency_manager = false 80 } 81 82 if (defined(global_parts_info) && 83 !defined(global_parts_info.distributeddatamgr_relational_store)) { 84 ability_runtime_relational = false 85 } 86 87 if (defined(global_parts_info) && 88 !defined(global_parts_info.notification_common_event_service)) { 89 ability_runtime_ces = false 90 } 91 92 if (defined(global_parts_info) && 93 !defined(global_parts_info.global_resource_management)) { 94 ability_runtime_resource = false 95 } 96 97 if (defined(global_parts_info) && 98 !defined(global_parts_info.startup_appspawn)) { 99 ability_runtime_appspawn = false 100 } 101 102 if (!defined(global_parts_info) || 103 defined(global_parts_info.security_dlp_permission_service)) { 104 os_dlp_part_enabled = true 105 } else { 106 os_dlp_part_enabled = false 107 } 108 109 if (!defined(global_parts_info) || 110 defined(global_parts_info.barrierfree_accessibility)) { 111 accessibility_enable = true 112 } else { 113 accessibility_enable = false 114 } 115} 116