• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
14ability_base_kits_path = "//foundation/ability/ability_base/interfaces/kits"
15ability_runtime_kits_path =
16    "//foundation/ability/ability_runtime/frameworks/kits"
17
18distributedfile_path = "//foundation/filemanagement/dfs_service"
19
20utils_path = "${distributedfile_path}/utils"
21services_path = "${distributedfile_path}/services"
22innerkits_native_path = "${distributedfile_path}/interfaces/inner_api/native"
23interfaces_js_path = "${distributedfile_path}/interfaces/kits/js"
24bas_hiviewdfx_hilog_path = "//base/hiviewdfx/hilog"
25device_manager_path = "//foundation/distributedhardware/device_manager"
26dsoftbus_path = "//foundation/communication/dsoftbus"
27communication_ipc_path = "//foundation/communication"
28clouddisk_database_path = "${services_path}/clouddisk_database"
29
30declare_args() {
31  support_same_account = true
32  support_device_profile = true
33  if (defined(global_parts_info) &&
34      defined(global_parts_info.powermgr_battery_manager)) {
35    cloudsync_service_power = true
36  } else {
37    cloudsync_service_power = false
38  }
39  dfs_service_feature_enable_cloud_adapter = false
40  dfs_service_feature_enable_dist_file_daemon = true
41
42  if (defined(global_parts_info) &&
43      defined(global_parts_info.resourceschedule_resource_schedule_service)) {
44    cloudsync_service_resource_schedule = true
45  } else {
46    cloudsync_service_resource_schedule = false
47  }
48
49  if (defined(global_parts_info) &&
50      defined(global_parts_info.hiviewdfx_hicollie)) {
51    cloudsync_service_hicollie_enable = true
52  } else {
53    cloudsync_service_hicollie_enable = false
54  }
55
56  if (!defined(global_parts_info) || !defined(
57          global_parts_info.distributedhardware_distributed_hardware_adapter)) {
58    support_same_account = false
59    support_device_profile = false
60  }
61}
62