• 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
47  if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) {
48    i18n_enable = false
49  }
50
51  if (defined(global_parts_info) &&
52      !defined(global_parts_info.telephony_core_service)) {
53    telephony_core_service_enable = false
54  }
55
56  if (defined(global_parts_info) &&
57      !defined(global_parts_info.telephony_cellular_data)) {
58    telephony_cellular_data_enable = false
59  }
60
61  if (defined(global_parts_info) &&
62      !defined(global_parts_info.hdf_drivers_interface_location_gnss)) {
63    hdf_drivers_interface_location_gnss_enable = false
64  }
65
66  if (defined(global_parts_info) &&
67      !defined(global_parts_info.hdf_drivers_interface_location_agnss)) {
68    hdf_drivers_interface_location_agnss_enable = false
69  }
70}
71