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
14kv_store_path = "//foundation/distributeddatamgr/kv_store"
15
16relational_store_path = "//foundation/distributeddatamgr/relational_store"
17
18relational_store_inner_api_path =
19    "${relational_store_path}/interfaces/inner_api/rdb"
20
21kv_store_common_path = "${kv_store_path}/frameworks/common"
22
23kv_store_distributeddb_path = "${kv_store_path}/frameworks/libs/distributeddb"
24
25dsoftbus_core_path = "//foundation/communication/dsoftbus/core/common/include"
26
27datashare_path = "//foundation/distributeddatamgr/data_share"
28
29ipc_core_path = "//foundation/communication/ipc/interfaces/innerkits/ipc_core"
30
31device_manager_path = "//foundation/distributedhardware/device_manager"
32
33file_service_path = "//foundation/filemanagement/app_file_service"
34
35data_service_path = "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice"
36
37udmf_path = "//foundation/distributeddatamgr/udmf"
38
39dataobject_path = "//foundation/distributeddatamgr/data_object"
40
41declare_args() {
42  datamgr_service_power = true
43  if (!defined(global_parts_info.power_manager_native_powermgr_client) ||
44      !defined(global_parts_info.battery_manager_native_batterysrv_client)) {
45    datamgr_service_power = false
46  }
47
48  if (!defined(global_parts_info) ||
49      defined(global_parts_info.account_os_account)) {
50    os_account_part_is_enabled = true
51  } else {
52    os_account_part_is_enabled = false
53  }
54
55  datamgr_service_config = true
56
57  datamgr_service_udmf = false
58}
59