1# Copyright (c) 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 14LOCATION_ROOT_DIR = "//base/location" 15SUBSYSTEM_DIR = "$LOCATION_ROOT_DIR/services" 16ARKUI_ROOT_DIR = "//foundation/arkui" 17IPC_ROOT_DIR = "//foundation/communication/ipc" 18LOCATION_GNSS_ROOT = "$SUBSYSTEM_DIR/location_gnss/gnss" 19LOCATION_LOCATOR_ROOT = "$SUBSYSTEM_DIR/location_locator/locator" 20LOCATION_LOCATOR_CALLBACK_ROOT = 21 "$SUBSYSTEM_DIR/location_locator/LOCATION_LOCATOR_CALLBACK_ROOT" 22LOCATION_GEOCONVERT_ROOT = "$SUBSYSTEM_DIR/location_geocode/geocode" 23LOCATION_NETWORK_ROOT = "$SUBSYSTEM_DIR/location_network/network" 24LOCATION_PASSIVE_ROOT = "$SUBSYSTEM_DIR/location_passive/passive" 25SAMGR_ROOT_DIR = "//foundation/systemabilitymgr" 26SECURITY_ROOT_DIR = "//base/security" 27START_UP_ROOT_DIR = "//base/startup" 28GOOGLE_TEST_DIR = "//third_party/googletest" 29DFX_HILOG_DIR = "//base/hiviewdfx/hilog" 30ABILITY_RUNTIME = "//foundation/ability/ability_runtime" 31LOCATION_NATIVE_DIR = "$LOCATION_ROOT_DIR/frameworks/native" 32LOCATION_NOTIFICATION_DIR = "$LOCATION_ROOT_DIR/frameworks/native/notification" 33LOCATION_COMMON_DIR = "$LOCATION_ROOT_DIR/frameworks/location_common/common" 34ability_runtime_path = "//foundation/ability/ability_runtime" 35ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi" 36WIFI_MANAGER_ROOT = "//foundation/communication/wifi/wifi" 37 38declare_args() { 39 location_feature_with_geocode = true 40 location_feature_with_gnss = true 41 location_feature_with_network = true 42 location_feature_with_passive = true 43 location_feature_with_jsstack = true 44 i18n_enable = true 45 telephony_core_service_enable = true 46 telephony_cellular_data_enable = true 47 hdf_drivers_interface_location_gnss_enable = true 48 hdf_drivers_interface_location_agnss_enable = true 49 communication_wifi_enable = true 50 communication_bluetooth_enable = true 51 resourceschedule_background_task_mgr_enable = true 52 resourceschedule_schedule_service_enable = true 53 ability_form_fwk_enable = true 54 call_manager_enable = true 55 sms_mms_enable = true 56 common_event_service_enable = true 57 hdf_drivers_interface_location_geofence_enable = true 58 multimedia_image_framework_enable = true 59 notification_distributed_notification_service_enable = true 60 movement_client_enable = true 61 location_device_standby_enable = true 62 time_service_enable = true 63 net_manager_enable = true 64 location_hicollie_enable = true 65 66 if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) { 67 i18n_enable = false 68 } 69 70 if (defined(global_parts_info) && 71 !defined(global_parts_info.telephony_core_service)) { 72 telephony_core_service_enable = false 73 } 74 75 if (defined(global_parts_info) && 76 !defined(global_parts_info.telephony_cellular_data)) { 77 telephony_cellular_data_enable = false 78 } 79 80 if (defined(global_parts_info) && 81 !defined(global_parts_info.hdf_drivers_interface_location_gnss)) { 82 hdf_drivers_interface_location_gnss_enable = false 83 } 84 85 if (defined(global_parts_info) && 86 !defined(global_parts_info.hdf_drivers_interface_location_agnss)) { 87 hdf_drivers_interface_location_agnss_enable = false 88 } 89 90 if (defined(global_parts_info) && 91 !defined(global_parts_info.hdf_drivers_interface_location_geofence)) { 92 hdf_drivers_interface_location_geofence_enable = false 93 } 94 95 if (defined(global_parts_info) && 96 !defined(global_parts_info.communication_wifi)) { 97 communication_wifi_enable = false 98 } 99 100 if (defined(global_parts_info) && 101 !defined(global_parts_info.communication_bluetooth)) { 102 communication_bluetooth_enable = false 103 } 104 105 if (defined(global_parts_info) && 106 !defined(global_parts_info.resourceschedule_background_task_mgr)) { 107 resourceschedule_background_task_mgr_enable = false 108 } 109 110 if (defined(global_parts_info) && 111 !defined(global_parts_info.ability_form_fwk)) { 112 ability_form_fwk_enable = false 113 } 114 115 if (defined(global_parts_info) && 116 !defined(global_parts_info.resourceschedule_resource_schedule_service)) { 117 resourceschedule_schedule_service_enable = false 118 } 119 120 if (defined(global_parts_info) && 121 !defined(global_parts_info.telephony_call_manager)) { 122 call_manager_enable = false 123 } 124 125 if (defined(global_parts_info) && 126 !defined(global_parts_info.notification_common_event_service)) { 127 common_event_service_enable = false 128 } 129 130 if (defined(global_parts_info) && 131 !defined(global_parts_info.telephony_sms_mms)) { 132 sms_mms_enable = false 133 } 134 135 if (defined(global_parts_info) && 136 !defined(global_parts_info.multimedia_image_framework)) { 137 multimedia_image_framework_enable = false 138 } 139 140 if (defined(global_parts_info) && !defined( 141 global_parts_info.notification_distributed_notification_service)) { 142 notification_distributed_notification_service_enable = false 143 } 144 145 if (defined(global_parts_info) && !defined(global_parts_info.msdp_movement)) { 146 movement_client_enable = false 147 } 148 149 if (defined(global_parts_info) && 150 !defined(global_parts_info.resourceschedule_device_standby)) { 151 location_device_standby_enable = false 152 } 153 154 if (defined(global_parts_info) && 155 !defined(global_parts_info.time_time_service)) { 156 time_service_enable = false 157 } 158 159 if (defined(global_parts_info) && 160 !defined(global_parts_info.communication_netmanager_base)) { 161 net_manager_enable = false 162 } 163 164 if (defined(global_parts_info) && 165 !defined(global_parts_info.hiviewdfx_hicollie)) { 166 location_hicollie_enable = false 167 } 168} 169