1# Copyright (c) 2021-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
14os_account_path = "//base/account/os_account"
15ability_runtime_path = "//foundation/ability/ability_runtime"
16ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi"
17bundle_framework_path = "//foundation/bundlemanager/bundle_framework"
18common_path = "${os_account_path}/frameworks/common"
19services_path = "${os_account_path}/services"
20tools_path = "${os_account_path}/tools"
21innerkits_path = "${os_account_path}/interfaces/innerkits/ohosaccount/native"
22innerkits_native_path = "${os_account_path}/frameworks/ohosaccount/native"
23innerkits_common = "${os_account_path}/interfaces/innerkits/common"
24
25app_account_core_path = "${os_account_path}/frameworks/appaccount/core"
26app_account_extension_path =
27    "${os_account_path}/frameworks/appaccount/extension"
28app_account_interfaces_native_path =
29    "${os_account_path}/interfaces/innerkits/appaccount/native"
30app_account_innerkits_native_path =
31    "${os_account_path}/frameworks/appaccount/native"
32app_account_services_path = "${os_account_path}/services/accountmgr"
33app_account_kits_path = "${os_account_path}/interfaces/kits/napi/appaccount"
34
35os_account_interfaces_native_path =
36    "${os_account_path}/interfaces/innerkits/osaccount/native"
37os_account_innerkits_native_path =
38    "${os_account_path}/frameworks/osaccount/native"
39os_account_core_path = "${os_account_path}/frameworks/osaccount/core"
40os_account_kits_path = "${os_account_path}/interfaces/kits/napi/osaccount"
41os_account_dfx_path = "${os_account_path}/dfx"
42
43account_iam_kits_path = "${os_account_path}/interfaces/kits/napi/account_iam"
44account_iam_interfaces_native_path =
45    "${os_account_path}/interfaces/innerkits/account_iam/native"
46account_iam_framework_path = "${os_account_path}/frameworks/account_iam"
47
48domain_account_napi_path =
49    "${os_account_path}/interfaces/kits/napi/domain_account"
50domain_account_interfaces_native_path =
51    "${os_account_path}/interfaces/innerkits/domain_account/native"
52domain_account_framework_path = "${os_account_path}/frameworks/domain_account"
53
54account_napi_common_path = "${os_account_path}/interfaces/kits/napi/common"
55
56account_coverage_config_path = "${os_account_path}/config"
57
58fuzz_output_path = "os_account/os_account"
59
60binarys_path = "//binarys"
61
62if (!defined(global_parts_info) ||
63    defined(global_parts_info.useriam_user_auth_framework)) {
64  has_user_auth_part = true
65  has_user_idm_part = true
66} else {
67  has_user_auth_part = false
68  has_user_idm_part = false
69}
70
71if (!defined(global_parts_info) ||
72    defined(global_parts_info.useriam_pin_auth)) {
73  has_pin_auth_part = true
74} else {
75  has_pin_auth_part = false
76}
77
78if (!defined(global_parts_info) ||
79    defined(global_parts_info.notification_common_event_service)) {
80  has_ces_part = true
81} else {
82  has_ces_part = false
83}
84
85if (!defined(global_parts_info) ||
86    defined(global_parts_info.hiviewdfx_hisysevent)) {
87  has_hiviewdfx_hisysevent_part = true
88} else {
89  has_hiviewdfx_hisysevent_part = false
90}
91
92if (!defined(global_parts_info) ||
93    defined(global_parts_info.hiviewdfx_hitrace)) {
94  has_hiviewdfx_hitrace_part = true
95} else {
96  has_hiviewdfx_hitrace_part = false
97}
98
99if (!defined(global_parts_info) ||
100    defined(global_parts_info.filemanagement_storage_service)) {
101  has_storage_service_part = true
102} else {
103  has_storage_service_part = false
104}
105
106declare_args() {
107  os_account_multiple_active_accounts = true
108}
109
110declare_args() {
111  os_account_support_deactivate_main_os_account = false
112}
113
114declare_args() {
115  os_account_distributed_feature = true
116}
117
118declare_args() {
119  os_account_enable_multiple_os_accounts = true
120}
121
122declare_args() {
123  os_account_enable_default_admin_name = true
124}
125
126declare_args() {
127  os_account_enable_account_short_name = false
128}
129
130declare_args() {
131  os_account_activate_last_logged_in_account = false
132}
133
134if (!defined(global_parts_info) ||
135    defined(global_parts_info.hiviewdfx_hicollie)) {
136  hicollie_enable = true
137} else {
138  hicollie_enable = false
139}
140
141if (!defined(global_parts_info) ||
142    defined(global_parts_info.security_security_guard)) {
143  security_guard_enabled = true
144} else {
145  security_guard_enabled = false
146}
147
148if (!defined(global_parts_info) ||
149    defined(global_parts_info.distributeddatamgr_kv_store)) {
150  has_kv_store_part = true
151  has_app_account_part = true
152} else {
153  has_kv_store_part = false
154  has_app_account_part = false
155}
156
157if (!defined(global_parts_info) || defined(global_parts_info.security_asset)) {
158  has_asset_part = true
159} else {
160  has_asset_part = false
161}
162
163if (!defined(global_parts_info) || defined(global_parts_info.security_huks)) {
164  has_huks_part = true
165} else {
166  has_huks_part = false
167}
168
169if (!defined(global_parts_info) || defined(global_parts_info.theme_theme_mgr)) {
170  has_theme_mar_part = true
171} else {
172  has_theme_mar_part = false
173}
174
175if (!defined(global_parts_info) ||
176    defined(global_parts_info.customization_config_policy)) {
177  has_config_policy_part = true
178} else {
179  has_config_policy_part = false
180}
181