1# Copyright (c) 2022-2023 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"
18kits_path = "${bundle_framework_path}/interfaces/kits"
19inner_api_path = "${bundle_framework_path}/interfaces/inner_api"
20
21bundletool_path = "${bundlemanager_path}/bundle_tool/frameworks"
22bundletool_test_path = "${bundlemanager_path}/bundle_tool/test"
23
24declare_args() {
25  account_enable_bm = true
26  overlay_install_bm = true
27  quick_fix_bm = true
28  distributed_bundle_framework_bm = true
29
30  if (defined(global_parts_info) &&
31      !defined(global_parts_info.account_os_account)) {
32    account_enable_bm = false
33  }
34
35  if (defined(global_parts_info) &&
36      !defined(global_parts_info.bundlemanager_distributed_bundle_framework)) {
37    distributed_bundle_framework_bm = false
38  }
39}
40
41bm_install_external_deps = [ "ffrt:libffrt" ]
42
43print("account_enable_bm = " + "$account_enable_bm")
44print("overlay_install_bm = " + "$overlay_install_bm")
45print("quick_fix_bm = " + "$quick_fix_bm")
46print("distributed_bundle_framework_bm = " + "$distributed_bundle_framework_bm")
47