15c735df2Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 25c735df2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 35c735df2Sopenharmony_ci# you may not use this file except in compliance with the License. 45c735df2Sopenharmony_ci# You may obtain a copy of the License at 55c735df2Sopenharmony_ci# 65c735df2Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 75c735df2Sopenharmony_ci# 85c735df2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 95c735df2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 105c735df2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115c735df2Sopenharmony_ci# See the License for the specific language governing permissions and 125c735df2Sopenharmony_ci# limitations under the License. 135c735df2Sopenharmony_ci 145c735df2Sopenharmony_ciLOCATION_ROOT_DIR = "//base/location" 155c735df2Sopenharmony_ciSUBSYSTEM_DIR = "$LOCATION_ROOT_DIR/services" 165c735df2Sopenharmony_ciARKUI_ROOT_DIR = "//foundation/arkui" 175c735df2Sopenharmony_ciIPC_ROOT_DIR = "//foundation/communication/ipc" 185c735df2Sopenharmony_ciLOCATION_GNSS_ROOT = "$SUBSYSTEM_DIR/location_gnss/gnss" 195c735df2Sopenharmony_ciLOCATION_LOCATOR_ROOT = "$SUBSYSTEM_DIR/location_locator/locator" 205c735df2Sopenharmony_ciLOCATION_LOCATOR_CALLBACK_ROOT = 215c735df2Sopenharmony_ci "$SUBSYSTEM_DIR/location_locator/LOCATION_LOCATOR_CALLBACK_ROOT" 225c735df2Sopenharmony_ciLOCATION_GEOCONVERT_ROOT = "$SUBSYSTEM_DIR/location_geocode/geocode" 235c735df2Sopenharmony_ciLOCATION_NETWORK_ROOT = "$SUBSYSTEM_DIR/location_network/network" 245c735df2Sopenharmony_ciLOCATION_PASSIVE_ROOT = "$SUBSYSTEM_DIR/location_passive/passive" 255c735df2Sopenharmony_ciSAMGR_ROOT_DIR = "//foundation/systemabilitymgr" 265c735df2Sopenharmony_ciSECURITY_ROOT_DIR = "//base/security" 275c735df2Sopenharmony_ciSTART_UP_ROOT_DIR = "//base/startup" 285c735df2Sopenharmony_ciGOOGLE_TEST_DIR = "//third_party/googletest" 295c735df2Sopenharmony_ciDFX_HILOG_DIR = "//base/hiviewdfx/hilog" 305c735df2Sopenharmony_ciABILITY_RUNTIME = "//foundation/ability/ability_runtime" 315c735df2Sopenharmony_ciLOCATION_NATIVE_DIR = "$LOCATION_ROOT_DIR/frameworks/native" 325c735df2Sopenharmony_ciLOCATION_NOTIFICATION_DIR = "$LOCATION_ROOT_DIR/frameworks/native/notification" 335c735df2Sopenharmony_ciLOCATION_COMMON_DIR = "$LOCATION_ROOT_DIR/frameworks/location_common/common" 345c735df2Sopenharmony_ciability_runtime_path = "//foundation/ability/ability_runtime" 355c735df2Sopenharmony_ciability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi" 365c735df2Sopenharmony_ciWIFI_MANAGER_ROOT = "//foundation/communication/wifi/wifi" 375c735df2Sopenharmony_ci 385c735df2Sopenharmony_cideclare_args() { 395c735df2Sopenharmony_ci location_feature_with_geocode = true 405c735df2Sopenharmony_ci location_feature_with_gnss = true 415c735df2Sopenharmony_ci location_feature_with_network = true 425c735df2Sopenharmony_ci location_feature_with_passive = true 435c735df2Sopenharmony_ci location_feature_with_jsstack = true 445c735df2Sopenharmony_ci i18n_enable = true 455c735df2Sopenharmony_ci telephony_core_service_enable = true 465c735df2Sopenharmony_ci telephony_cellular_data_enable = true 475c735df2Sopenharmony_ci hdf_drivers_interface_location_gnss_enable = true 485c735df2Sopenharmony_ci hdf_drivers_interface_location_agnss_enable = true 495c735df2Sopenharmony_ci communication_wifi_enable = true 505c735df2Sopenharmony_ci communication_bluetooth_enable = true 515c735df2Sopenharmony_ci resourceschedule_background_task_mgr_enable = true 525c735df2Sopenharmony_ci resourceschedule_schedule_service_enable = true 535c735df2Sopenharmony_ci ability_form_fwk_enable = true 545c735df2Sopenharmony_ci call_manager_enable = true 555c735df2Sopenharmony_ci sms_mms_enable = true 565c735df2Sopenharmony_ci common_event_service_enable = true 575c735df2Sopenharmony_ci hdf_drivers_interface_location_geofence_enable = true 585c735df2Sopenharmony_ci multimedia_image_framework_enable = true 595c735df2Sopenharmony_ci notification_distributed_notification_service_enable = true 605c735df2Sopenharmony_ci movement_client_enable = true 615c735df2Sopenharmony_ci location_device_standby_enable = true 625c735df2Sopenharmony_ci time_service_enable = true 635c735df2Sopenharmony_ci net_manager_enable = true 645c735df2Sopenharmony_ci 655c735df2Sopenharmony_ci if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) { 665c735df2Sopenharmony_ci i18n_enable = false 675c735df2Sopenharmony_ci } 685c735df2Sopenharmony_ci 695c735df2Sopenharmony_ci if (defined(global_parts_info) && 705c735df2Sopenharmony_ci !defined(global_parts_info.telephony_core_service)) { 715c735df2Sopenharmony_ci telephony_core_service_enable = false 725c735df2Sopenharmony_ci } 735c735df2Sopenharmony_ci 745c735df2Sopenharmony_ci if (defined(global_parts_info) && 755c735df2Sopenharmony_ci !defined(global_parts_info.telephony_cellular_data)) { 765c735df2Sopenharmony_ci telephony_cellular_data_enable = false 775c735df2Sopenharmony_ci } 785c735df2Sopenharmony_ci 795c735df2Sopenharmony_ci if (defined(global_parts_info) && 805c735df2Sopenharmony_ci !defined(global_parts_info.hdf_drivers_interface_location_gnss)) { 815c735df2Sopenharmony_ci hdf_drivers_interface_location_gnss_enable = false 825c735df2Sopenharmony_ci } 835c735df2Sopenharmony_ci 845c735df2Sopenharmony_ci if (defined(global_parts_info) && 855c735df2Sopenharmony_ci !defined(global_parts_info.hdf_drivers_interface_location_agnss)) { 865c735df2Sopenharmony_ci hdf_drivers_interface_location_agnss_enable = false 875c735df2Sopenharmony_ci } 885c735df2Sopenharmony_ci 895c735df2Sopenharmony_ci if (defined(global_parts_info) && 905c735df2Sopenharmony_ci !defined(global_parts_info.hdf_drivers_interface_location_geofence)) { 915c735df2Sopenharmony_ci hdf_drivers_interface_location_geofence_enable = false 925c735df2Sopenharmony_ci } 935c735df2Sopenharmony_ci 945c735df2Sopenharmony_ci if (defined(global_parts_info) && 955c735df2Sopenharmony_ci !defined(global_parts_info.communication_wifi)) { 965c735df2Sopenharmony_ci communication_wifi_enable = false 975c735df2Sopenharmony_ci } 985c735df2Sopenharmony_ci 995c735df2Sopenharmony_ci if (defined(global_parts_info) && 1005c735df2Sopenharmony_ci !defined(global_parts_info.communication_bluetooth)) { 1015c735df2Sopenharmony_ci communication_bluetooth_enable = false 1025c735df2Sopenharmony_ci } 1035c735df2Sopenharmony_ci 1045c735df2Sopenharmony_ci if (defined(global_parts_info) && 1055c735df2Sopenharmony_ci !defined(global_parts_info.resourceschedule_background_task_mgr)) { 1065c735df2Sopenharmony_ci resourceschedule_background_task_mgr_enable = false 1075c735df2Sopenharmony_ci } 1085c735df2Sopenharmony_ci 1095c735df2Sopenharmony_ci if (defined(global_parts_info) && 1105c735df2Sopenharmony_ci !defined(global_parts_info.ability_form_fwk)) { 1115c735df2Sopenharmony_ci ability_form_fwk_enable = false 1125c735df2Sopenharmony_ci } 1135c735df2Sopenharmony_ci 1145c735df2Sopenharmony_ci if (defined(global_parts_info) && 1155c735df2Sopenharmony_ci !defined(global_parts_info.resourceschedule_resource_schedule_service)) { 1165c735df2Sopenharmony_ci resourceschedule_schedule_service_enable = false 1175c735df2Sopenharmony_ci } 1185c735df2Sopenharmony_ci 1195c735df2Sopenharmony_ci if (defined(global_parts_info) && 1205c735df2Sopenharmony_ci !defined(global_parts_info.telephony_call_manager)) { 1215c735df2Sopenharmony_ci call_manager_enable = false 1225c735df2Sopenharmony_ci } 1235c735df2Sopenharmony_ci 1245c735df2Sopenharmony_ci if (defined(global_parts_info) && 1255c735df2Sopenharmony_ci !defined(global_parts_info.notification_common_event_service)) { 1265c735df2Sopenharmony_ci common_event_service_enable = false 1275c735df2Sopenharmony_ci } 1285c735df2Sopenharmony_ci 1295c735df2Sopenharmony_ci if (defined(global_parts_info) && 1305c735df2Sopenharmony_ci !defined(global_parts_info.telephony_sms_mms)) { 1315c735df2Sopenharmony_ci sms_mms_enable = false 1325c735df2Sopenharmony_ci } 1335c735df2Sopenharmony_ci 1345c735df2Sopenharmony_ci if (defined(global_parts_info) && 1355c735df2Sopenharmony_ci !defined(global_parts_info.multimedia_image_framework)) { 1365c735df2Sopenharmony_ci multimedia_image_framework_enable = false 1375c735df2Sopenharmony_ci } 1385c735df2Sopenharmony_ci 1395c735df2Sopenharmony_ci if (defined(global_parts_info) && !defined( 1405c735df2Sopenharmony_ci global_parts_info.notification_distributed_notification_service)) { 1415c735df2Sopenharmony_ci notification_distributed_notification_service_enable = false 1425c735df2Sopenharmony_ci } 1435c735df2Sopenharmony_ci 1445c735df2Sopenharmony_ci if (defined(global_parts_info) && !defined(global_parts_info.msdp_movement)) { 1455c735df2Sopenharmony_ci movement_client_enable = false 1465c735df2Sopenharmony_ci } 1475c735df2Sopenharmony_ci 1485c735df2Sopenharmony_ci if (defined(global_parts_info) && 1495c735df2Sopenharmony_ci !defined(global_parts_info.resourceschedule_device_standby)) { 1505c735df2Sopenharmony_ci location_device_standby_enable = false 1515c735df2Sopenharmony_ci } 1525c735df2Sopenharmony_ci 1535c735df2Sopenharmony_ci if (defined(global_parts_info) && 1545c735df2Sopenharmony_ci !defined(global_parts_info.time_time_service)) { 1555c735df2Sopenharmony_ci time_service_enable = false 1565c735df2Sopenharmony_ci } 1575c735df2Sopenharmony_ci 1585c735df2Sopenharmony_ci if (defined(global_parts_info) && 1595c735df2Sopenharmony_ci !defined(global_parts_info.communication_netmanager_base)) { 1605c735df2Sopenharmony_ci net_manager_enable = false 1615c735df2Sopenharmony_ci } 1625c735df2Sopenharmony_ci} 163