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_ffi_kits_path = "${os_account_path}/interfaces/kits/cj/osaccount"
42os_account_dfx_path = "${os_account_path}/dfx"
43
44account_iam_kits_path = "${os_account_path}/interfaces/kits/napi/account_iam"
45account_iam_interfaces_native_path =
46    "${os_account_path}/interfaces/innerkits/account_iam/native"
47account_iam_framework_path = "${os_account_path}/frameworks/account_iam"
48
49domain_account_napi_path =
50    "${os_account_path}/interfaces/kits/napi/domain_account"
51domain_account_interfaces_native_path =
52    "${os_account_path}/interfaces/innerkits/domain_account/native"
53domain_account_framework_path = "${os_account_path}/frameworks/domain_account"
54
55account_napi_common_path = "${os_account_path}/interfaces/kits/napi/common"
56
57account_coverage_config_path = "${os_account_path}/config"
58
59fuzz_output_path = "os_account/os_account"
60
61binarys_path = "//binarys"
62
63if (!defined(global_parts_info) ||
64    defined(global_parts_info.useriam_user_auth_framework)) {
65  has_user_auth_part = true
66  has_user_idm_part = true
67} else {
68  has_user_auth_part = false
69  has_user_idm_part = false
70}
71
72if (!defined(global_parts_info) ||
73    defined(global_parts_info.useriam_pin_auth)) {
74  has_pin_auth_part = true
75} else {
76  has_pin_auth_part = false
77}
78
79if (!defined(global_parts_info) ||
80    defined(global_parts_info.notification_common_event_service)) {
81  has_ces_part = true
82} else {
83  has_ces_part = false
84}
85
86if (!defined(global_parts_info) ||
87    defined(global_parts_info.hiviewdfx_hisysevent)) {
88  has_hiviewdfx_hisysevent_part = true
89} else {
90  has_hiviewdfx_hisysevent_part = false
91}
92
93if (!defined(global_parts_info) ||
94    defined(global_parts_info.hiviewdfx_hitrace)) {
95  has_hiviewdfx_hitrace_part = true
96} else {
97  has_hiviewdfx_hitrace_part = false
98}
99
100if (!defined(global_parts_info) ||
101    defined(global_parts_info.filemanagement_storage_service)) {
102  has_storage_service_part = true
103} else {
104  has_storage_service_part = false
105}
106
107declare_args() {
108  os_account_multiple_active_accounts = true
109}
110
111declare_args() {
112  os_account_support_deactivate_main_os_account = false
113}
114
115declare_args() {
116  os_account_distributed_feature = true
117}
118
119declare_args() {
120  os_account_enable_multiple_os_accounts = true
121}
122
123declare_args() {
124  os_account_enable_default_admin_name = true
125}
126
127declare_args() {
128  os_account_enable_account_short_name = false
129}
130
131declare_args() {
132  os_account_activate_last_logged_in_account = false
133}
134
135if (!defined(global_parts_info) ||
136    defined(global_parts_info.hiviewdfx_hicollie)) {
137  hicollie_enable = true
138} else {
139  hicollie_enable = false
140}
141
142if (!defined(global_parts_info) ||
143    defined(global_parts_info.security_security_guard)) {
144  security_guard_enabled = true
145} else {
146  security_guard_enabled = false
147}
148
149if (!defined(global_parts_info) ||
150    defined(global_parts_info.distributeddatamgr_kv_store)) {
151  has_kv_store_part = true
152  has_app_account_part = true
153} else {
154  has_kv_store_part = false
155  has_app_account_part = false
156}
157
158if (!defined(global_parts_info) || defined(global_parts_info.security_asset)) {
159  has_asset_part = true
160} else {
161  has_asset_part = false
162}
163
164if (!defined(global_parts_info) || defined(global_parts_info.security_huks)) {
165  has_huks_part = true
166} else {
167  has_huks_part = false
168}
169
170if (!defined(global_parts_info) || defined(global_parts_info.theme_theme_mgr)) {
171  has_theme_mar_part = true
172} else {
173  has_theme_mar_part = false
174}
175
176if (!defined(global_parts_info) ||
177    defined(global_parts_info.customization_config_policy)) {
178  has_config_policy_part = true
179} else {
180  has_config_policy_part = false
181}
182