• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
16
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
32  if (defined(global_parts_info) &&
33      !defined(global_parts_info.ability_ability_runtime)) {
34    ability_runtime_enable_dbms = false
35  }
36
37  if (defined(global_parts_info) &&
38      !defined(global_parts_info.account_os_account)) {
39    account_enable_dbms = false
40  }
41
42  if (defined(global_parts_info) &&
43      !defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
44    distributed_bundle_framework_enable = false
45  }
46
47  if (defined(global_parts_info) &&
48      !defined(global_parts_info.hiviewdfx_hisysevent_native)) {
49    hisysevent_enable_dbms = false
50  }
51}
52
53print("distributed_bundle_framework_graphics = " +
54      "$distributed_bundle_framework_graphics")
55print("ability_runtime_enable_dbms = " + "$ability_runtime_enable_dbms")
56print("account_enable_dbms = " + "$account_enable_dbms")
57print("distributed_bundle_framework_enable = " +
58      "$distributed_bundle_framework_enable")
59print("hisysevent_enable_dbms = " + "$hisysevent_enable_dbms")
60