• 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"
29LIB_UV_DIR = "//third_party/libuv"
30DFX_HILOG_DIR = "//base/hiviewdfx/hilog"
31ABILITY_RUNTIME = "//foundation/ability/ability_runtime"
32LOCATION_NATIVE_DIR = "$LOCATION_ROOT_DIR/frameworks/native"
33LOCATION_COMMON_DIR = "$LOCATION_ROOT_DIR/frameworks/location_common/common"
34
35declare_args() {
36  location_feature_with_geocode = true
37  location_feature_with_gnss = true
38  location_feature_with_network = true
39  location_feature_with_passive = true
40  location_feature_with_jsstack = true
41  i18n_enable = true
42  telephony_core_service_enable = true
43  telephony_cellular_data_enable = true
44  hdf_drivers_interface_location_gnss_enable = true
45  hdf_drivers_interface_location_agnss_enable = true
46  communication_wifi_enable = true
47  communication_bluetooth_enable = true
48  resourceschedule_background_task_mgr_enable = true
49
50  if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
51    i18n_enable = false
52  }
53
54  if (defined(global_parts_info) &&
55      !defined(global_parts_info.telephony_core_service)) {
56    telephony_core_service_enable = false
57  }
58
59  if (defined(global_parts_info) &&
60      !defined(global_parts_info.telephony_cellular_data)) {
61    telephony_cellular_data_enable = false
62  }
63
64  if (defined(global_parts_info) &&
65      !defined(global_parts_info.hdf_drivers_interface_location_gnss)) {
66    hdf_drivers_interface_location_gnss_enable = false
67  }
68
69  if (defined(global_parts_info) &&
70      !defined(global_parts_info.hdf_drivers_interface_location_agnss)) {
71    hdf_drivers_interface_location_agnss_enable = false
72  }
73
74  if (defined(global_parts_info) &&
75      !defined(global_parts_info.communication_wifi)) {
76    communication_wifi_enable = false
77  }
78
79  if (defined(global_parts_info) &&
80      !defined(global_parts_info.communication_bluetooth)) {
81    communication_bluetooth_enable = false
82  }
83
84  if (defined(global_parts_info) &&
85      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
86    resourceschedule_background_task_mgr_enable = false
87  }
88}
89