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  if (defined(global_parts_info) &&
41      defined(global_parts_info.multimedia_media_library)) {
42    cloudsync_service_media_library = true
43  } else {
44    cloudsync_service_media_library = false
45  }
46
47  if (defined(global_parts_info) &&
48      defined(global_parts_info.resourceschedule_resource_schedule_service)) {
49    cloudsync_service_resource_schedule = true
50  } else {
51    cloudsync_service_resource_schedule = false
52  }
53
54  if (defined(global_parts_info) &&
55      defined(global_parts_info.hiviewdfx_hicollie)) {
56    cloudsync_service_hicollie_enable = true
57  } else {
58    cloudsync_service_hicollie_enable = false
59  }
60
61  if (!defined(global_parts_info) || !defined(
62          global_parts_info.distributedhardware_distributed_hardware_adapter)) {
63    support_same_account = false
64  }
65}
66