• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  location_sa_recycle_strategy_low_memory = true
66  startup_init = true
67  location_feature_with_opp_switch = true
68
69  if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
70    i18n_enable = false
71  }
72
73  if (defined(global_parts_info) &&
74      !defined(global_parts_info.telephony_core_service)) {
75    telephony_core_service_enable = false
76  }
77
78  if (defined(global_parts_info) &&
79      !defined(global_parts_info.telephony_cellular_data)) {
80    telephony_cellular_data_enable = false
81  }
82
83  if (defined(global_parts_info) &&
84      !defined(global_parts_info.hdf_drivers_interface_location_gnss)) {
85    hdf_drivers_interface_location_gnss_enable = false
86  }
87
88  if (defined(global_parts_info) &&
89      !defined(global_parts_info.hdf_drivers_interface_location_agnss)) {
90    hdf_drivers_interface_location_agnss_enable = false
91  }
92
93  if (defined(global_parts_info) &&
94      !defined(global_parts_info.hdf_drivers_interface_location_geofence)) {
95    hdf_drivers_interface_location_geofence_enable = false
96  }
97
98  if (defined(global_parts_info) &&
99      !defined(global_parts_info.communication_wifi)) {
100    communication_wifi_enable = false
101  }
102
103  if (defined(global_parts_info) &&
104      !defined(global_parts_info.communication_bluetooth)) {
105    communication_bluetooth_enable = false
106  }
107
108  if (defined(global_parts_info) &&
109      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
110    resourceschedule_background_task_mgr_enable = false
111  }
112
113  if (defined(global_parts_info) &&
114      !defined(global_parts_info.ability_form_fwk)) {
115    ability_form_fwk_enable = false
116  }
117
118  if (defined(global_parts_info) &&
119      !defined(global_parts_info.resourceschedule_resource_schedule_service)) {
120    resourceschedule_schedule_service_enable = false
121  }
122
123  if (defined(global_parts_info) &&
124      !defined(global_parts_info.telephony_call_manager)) {
125    call_manager_enable = false
126  }
127
128  if (defined(global_parts_info) &&
129      !defined(global_parts_info.notification_common_event_service)) {
130    common_event_service_enable = false
131  }
132
133  if (defined(global_parts_info) &&
134      !defined(global_parts_info.telephony_sms_mms)) {
135    sms_mms_enable = false
136  }
137
138  if (defined(global_parts_info) &&
139      !defined(global_parts_info.multimedia_image_framework)) {
140    multimedia_image_framework_enable = false
141  }
142
143  if (defined(global_parts_info) && !defined(
144          global_parts_info.notification_distributed_notification_service)) {
145    notification_distributed_notification_service_enable = false
146  }
147
148  if (defined(global_parts_info) && !defined(global_parts_info.msdp_movement)) {
149    movement_client_enable = false
150  }
151
152  if (defined(global_parts_info) &&
153      !defined(global_parts_info.resourceschedule_device_standby)) {
154    location_device_standby_enable = false
155  }
156
157  if (defined(global_parts_info) &&
158      !defined(global_parts_info.time_time_service)) {
159    time_service_enable = false
160  }
161
162  if (defined(global_parts_info) &&
163      !defined(global_parts_info.communication_netmanager_base)) {
164    net_manager_enable = false
165  }
166
167  if (defined(global_parts_info) &&
168      !defined(global_parts_info.hiviewdfx_hicollie)) {
169    location_hicollie_enable = false
170  }
171
172  if (defined(global_parts_info) && !defined(global_parts_info.startup_init)) {
173    startup_init = false
174  }
175}
176