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
14bundlemanager_path = "//foundation/bundlemanager"
15bundle_framework_path = "${bundlemanager_path}/bundle_framework"
16fuzz_test_path = "distributed_bundle_framework/distributed_bundle_framework"
17common_path = "${bundle_framework_path}/common"
18dbms_inner_api_path =
19    "${bundlemanager_path}/distributed_bundle_framework/interfaces/inner_api"
20dbms_services_path =
21    "${bundlemanager_path}/distributed_bundle_framework/services/dbms"
22kits_path = "${bundle_framework_path}/interfaces/kits"
23
24declare_args() {
25  distributed_bundle_framework_graphics = true
26
27  ability_runtime_enable_dbms = true
28  account_enable_dbms = true
29  distributed_bundle_framework_enable = true
30  hisysevent_enable_dbms = true
31  distributed_bundle_image_framework_enable = true
32
33  if (defined(global_parts_info) &&
34      !defined(global_parts_info.ability_ability_runtime)) {
35    ability_runtime_enable_dbms = false
36  }
37
38  if (defined(global_parts_info) &&
39      !defined(global_parts_info.account_os_account)) {
40    account_enable_dbms = false
41  }
42
43  if (defined(global_parts_info) &&
44      !defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
45    distributed_bundle_framework_enable = false
46  }
47
48  if (defined(global_parts_info) &&
49      !defined(global_parts_info.hiviewdfx_hisysevent)) {
50    hisysevent_enable_dbms = false
51  }
52
53  if (defined(global_parts_info) &&
54      !defined(global_parts_info.multimedia_image_framework)) {
55    distributed_bundle_image_framework_enable = false
56  }
57}
58
59print("distributed_bundle_framework_graphics = " +
60      "$distributed_bundle_framework_graphics")
61print("ability_runtime_enable_dbms = " + "$ability_runtime_enable_dbms")
62print("account_enable_dbms = " + "$account_enable_dbms")
63print("distributed_bundle_framework_enable = " +
64      "$distributed_bundle_framework_enable")
65print("hisysevent_enable_dbms = " + "$hisysevent_enable_dbms")
66print("distributed_bundle_image_framework_enable = " +
67      "$distributed_bundle_image_framework_enable")
68