• 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"
23bas_hiviewdfx_hilog_path = "//base/hiviewdfx/hilog"
24device_manager_path = "//foundation/distributedhardware/device_manager"
25dsoftbus_path = "//foundation/communication/dsoftbus"
26media_library_path = "//foundation/multimedia/media_library"
27communication_ipc_path = "//foundation/communication"
28image_framework_path = "//foundation/multimedia/image_framework"
29clouddisk_database_path = "${services_path}/clouddisk_database"
30
31declare_args() {
32  support_same_account = 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  if (defined(global_parts_info) &&
42      defined(global_parts_info.multimedia_media_library)) {
43    cloudsync_service_media_library = true
44  } else {
45    cloudsync_service_media_library = false
46  }
47
48  if (defined(global_parts_info) &&
49      defined(global_parts_info.resourceschedule_resource_schedule_service)) {
50    cloudsync_service_resource_schedule = true
51  } else {
52    cloudsync_service_resource_schedule = false
53  }
54
55  if (defined(global_parts_info) &&
56      defined(global_parts_info.hiviewdfx_hicollie)) {
57    cloudsync_service_hicollie_enable = true
58  } else {
59    cloudsync_service_hicollie_enable = false
60  }
61
62  if (!defined(global_parts_info) || !defined(
63          global_parts_info.distributedhardware_distributed_hardware_adapter)) {
64    support_same_account = false
65  }
66}
67