1# Copyright (c) 2021-2024 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 14import("//build/ohos.gni") 15 16ability_runtime_path = "//foundation/ability/ability_runtime" 17ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi" 18ability_base_path = "//foundation/ability/ability_base" 19form_fwk_path = "//foundation/ability/form_fwk" 20ability_runtime_innerkits_path = "${ability_runtime_path}/interfaces/inner_api" 21ability_runtime_ndk_path = "${ability_runtime_path}/interfaces/kits/c" 22ability_runtime_native_path = "${ability_runtime_path}/frameworks/native" 23ability_runtime_services_path = "${ability_runtime_path}/services" 24ability_runtime_abilitymgr_path = "${ability_runtime_services_path}/abilitymgr" 25ability_runtime_test_path = "${ability_runtime_path}/test" 26ability_runtime_utils_path = "${ability_runtime_path}/utils" 27ace_engine_path = "//foundation/arkui/ace_engine" 28arkui_path = "//foundation/arkui" 29previewer_path = "//ide/tools/previewer" 30simulator_path = "//foundation/ability/ability_runtime/frameworks/simulator" 31 32bundlefwk_path = "//foundation/bundlemanager/bundle_framework" 33bundlefwk_inner_api_path = "${bundlefwk_path}/interfaces/inner_api" 34c_utils_base_path = "//commonlibrary/c_utils/base" 35ets_utils_path = "//commonlibrary/ets_utils" 36print_fwk_path = "//base/print/print_fwk" 37imf_path = "//base/inputmethod/imf" 38wallpaper_mgr_path = "//base/theme/wallpaper_mgr" 39os_account_path = "//base/account/os_account" 40distributed_notification_service_path = 41 "//base/notification/distributed_notification_service" 42power_manager_path = "//base/powermgr/power_manager" 43request_path = "//base/request/request" 44hiebpf_path = "//developtools/profiler/hiebpf" 45 46multimedia_path = "//foundation/multimedia/image_framework" 47multimodalinput_path = "//foundation/multimodalinput/input" 48windowmanager_path = "//foundation/window/window_manager" 49graphic_path = "//foundation/graphic/graphic_2d" 50global_path = "//base/global" 51distributedschedule_path = "//foundation/systemabilitymgr" 52eventhandler_path = "//base/notification/eventhandler" 53distributeddatamgr_path = "//foundation/distributeddatamgr" 54form_fwk_napi_path = "${form_fwk_path}/frameworks/js/napi" 55ability_base_kits_path = "${ability_base_path}/interfaces/kits/native" 56ability_base_native_path = "${ability_base_path}/frameworks/native" 57appspawn_path = "//base/startup/appspawn" 58init_path = "//base/startup/init" 59ipc_native_path = "//foundation/communication/ipc/ipc/native" 60third_party_path = "//third_party" 61hiviewdfx_path = "//base/hiviewdfx/hiview" 62hilog_path = "//base/hiviewdfx/hilog" 63webview_path = "//base/web/webview" 64resource_management_path = "//base/global/resource_management" 65common_event_service_path = "//base/notification/common_event_service" 66safwk_path = "//utils/system/safwk" 67user_file_service_innerkits_path = 68 "//foundation/filemanagement/user_file_service/interfaces/inner_api" 69resourceschedule_path = "//foundation/resourceschedule" 70device_usage_statistics_path = 71 "//foundation/resourceschedule/device_usage_statistics" 72device_manager_path = "//foundation/distributedhardware/device_manager" 73graphic_2d_path = "//foundation/graphic/graphic_2d" 74srms_inner_api_path = 75 "${ability_runtime_path}/service_router_framework/interfaces/inner_api" 76fuzz_test_output_path = "ability_runtime/ability_runtime" 77accessibility_path = "//foundation/barrierfree/accessibility" 78relational_store_base_path = "//foundation/distributeddatamgr/relational_store" 79relational_store_napi_path = "${relational_store_base_path}/frameworks/js/napi" 80common_tool_path = "//foundation/distributeddatamgr/kv_store/frameworks/common" 81relational_store_common_path = "${relational_store_base_path}/frameworks/common" 82ability_base_path = "//foundation/ability/ability_base" 83ability_base_innerapi_path = "${ability_base_path}/interfaces/inner_api" 84relational_store_innerapi_path = 85 "${relational_store_base_path}/interfaces/inner_api" 86bgtaskmgr_root_path = "//foundation/resourceschedule/background_task_mgr" 87bgtaskmgr_interfaces_path = "${bgtaskmgr_root_path}/interfaces" 88bgtaskmgr_frameworks_path = "${bgtaskmgr_root_path}/frameworks" 89os_account_path = "//base/account/os_account" 90access_token_path = "//base/security/access_token" 91 92declare_args() { 93 background_task_mgr_continuous_task_enable = true 94 resource_schedule_service_enable = true 95 ability_runtime_feature_sandboxmanager = false 96 ability_runtime_power = true 97 ability_runtime_relational = true 98 ability_runtime_ces = true 99 ability_runtime_resource = true 100 ability_runtime_action_extension = true 101 ability_runtime_photo_editor_extension = true 102 ability_runtime_share_extension = true 103 ability_runtime_ui_service_extension = true 104 ability_runtime_appspawn = true 105 ability_runtime_auto_fill = true 106 ability_runtime_child_process = true 107 ability_fault_and_exit_test = false 108 ability_command_for_test = false 109 ability_runtime_feature_coverage = false 110 ability_runtime_auto_fill_ability = 111 "com.ohos.passwordbox/entry/AutoFillAbility" 112 ability_runtime_smart_auto_fill_ability = 113 "com.ohos.textautofill/entry/TextAutoFillAbility" 114 ability_runtime_upms = true 115 cj_frontend = true 116 ability_runtime_app_no_response_dialog = false 117 ability_runtime_app_no_response_bundlename = "com.ohos.taskmanager" 118 include_app_domain_verify = true 119 ability_runtime_start_window_options_with_pixelmap = false 120 ability_runtime_check_internet_permission = false 121 ability_runtime_media_library_enable = true 122 123 if (!defined(global_parts_info) || 124 defined(global_parts_info.account_os_account)) { 125 os_account_part_enabled = true 126 } else { 127 os_account_part_enabled = false 128 } 129 130 if (defined(global_parts_info) && 131 !defined(global_parts_info.resourceschedule_background_task_mgr)) { 132 background_task_mgr_continuous_task_enable = false 133 } 134 135 if (defined(global_parts_info) && 136 !defined(global_parts_info.resourceschedule_resource_schedule_service)) { 137 resource_schedule_service_enable = false 138 } 139 140 if (defined(global_parts_info) && 141 !defined(global_parts_info.powermgr_power_manager)) { 142 ability_runtime_power = false 143 } 144 145 if (defined(global_parts_info) && 146 !defined(global_parts_info.distributeddatamgr_relational_store)) { 147 ability_runtime_relational = false 148 } 149 150 if (defined(global_parts_info) && 151 !defined(global_parts_info.notification_common_event_service)) { 152 ability_runtime_ces = false 153 } 154 155 if (defined(global_parts_info) && 156 !defined(global_parts_info.global_resource_management)) { 157 ability_runtime_resource = false 158 } 159 160 if (defined(global_parts_info) && 161 !defined(global_parts_info.startup_appspawn)) { 162 ability_runtime_appspawn = false 163 } 164 165 if (!defined(global_parts_info) || 166 defined(global_parts_info.security_dlp_permission_service)) { 167 os_dlp_part_enabled = true 168 } else { 169 os_dlp_part_enabled = false 170 } 171 172 if (!defined(global_parts_info) || 173 defined(global_parts_info.barrierfree_accessibility)) { 174 accessibility_enable = true 175 } else { 176 accessibility_enable = false 177 } 178 179 if (!defined(global_parts_info) || 180 defined(global_parts_info.hiviewdfx_hichecker)) { 181 hichecker_enabled = true 182 } else { 183 hichecker_enabled = false 184 } 185 186 if (defined(global_parts_info) && 187 !defined(global_parts_info.bundlemanager_app_domain_verify)) { 188 include_app_domain_verify = false 189 } 190 191 if (!defined(global_parts_info) || 192 defined(global_parts_info.ability_form_fwk)) { 193 form_fwk_enable = true 194 } else { 195 form_fwk_enable = false 196 } 197 198 if (defined(global_parts_info) && 199 defined(global_parts_info.accesscontrol_sandbox_manager)) { 200 ability_runtime_feature_sandboxmanager = true 201 } 202 203 if (defined(global_parts_info) && 204 defined(global_parts_info.hiviewdfx_hicollie)) { 205 app_mgr_service_hicollie_enable = true 206 } else { 207 app_mgr_service_hicollie_enable = false 208 } 209 210 if (defined(global_parts_info) && 211 !defined(global_parts_info.multimedia_media_library)) { 212 ability_runtime_media_library_enable = false 213 } 214} 215