1# Copyright (c) 2021-2024 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" 15common_path = "${os_account_path}/frameworks/common" 16services_path = "${os_account_path}/services" 17tools_path = "${os_account_path}/tools" 18innerkits_path = "${os_account_path}/interfaces/innerkits/ohosaccount/native" 19innerkits_native_path = "${os_account_path}/frameworks/ohosaccount/native" 20innerkits_common = "${os_account_path}/interfaces/innerkits/common" 21account_test_common = "${os_account_path}/test/common" 22 23app_account_core_path = "${os_account_path}/frameworks/appaccount/core" 24app_account_extension_path = 25 "${os_account_path}/frameworks/appaccount/extension" 26app_account_interfaces_native_path = 27 "${os_account_path}/interfaces/innerkits/appaccount/native" 28app_account_innerkits_native_path = 29 "${os_account_path}/frameworks/appaccount/native" 30app_account_services_path = "${os_account_path}/services/accountmgr" 31app_account_kits_path = "${os_account_path}/interfaces/kits/napi/appaccount" 32 33os_account_interfaces_native_path = 34 "${os_account_path}/interfaces/innerkits/osaccount/native" 35os_account_innerkits_native_path = 36 "${os_account_path}/frameworks/osaccount/native" 37os_account_core_path = "${os_account_path}/frameworks/osaccount/core" 38os_account_kits_path = "${os_account_path}/interfaces/kits/napi/osaccount" 39os_account_ffi_kits_path = "${os_account_path}/interfaces/kits/cj/osaccount" 40os_account_dfx_path = "${os_account_path}/dfx" 41 42account_iam_kits_path = "${os_account_path}/interfaces/kits/napi/account_iam" 43account_iam_interfaces_native_path = 44 "${os_account_path}/interfaces/innerkits/account_iam/native" 45account_iam_framework_path = "${os_account_path}/frameworks/account_iam" 46 47domain_account_napi_path = 48 "${os_account_path}/interfaces/kits/napi/domain_account" 49domain_account_interfaces_native_path = 50 "${os_account_path}/interfaces/innerkits/domain_account/native" 51domain_account_framework_path = "${os_account_path}/frameworks/domain_account" 52 53account_napi_common_path = "${os_account_path}/interfaces/kits/napi/common" 54 55account_coverage_config_path = "${os_account_path}/config" 56 57fuzz_output_path = "os_account/os_account" 58 59binarys_path = "//binarys" 60 61if (!defined(global_parts_info) || 62 defined(global_parts_info.useriam_user_auth_framework)) { 63 has_user_auth_part = true 64 has_user_idm_part = true 65} else { 66 has_user_auth_part = false 67 has_user_idm_part = false 68} 69 70if (!defined(global_parts_info) || 71 defined(global_parts_info.useriam_pin_auth) || 72 defined(global_parts_info.useriam_user_auth_framework)) { 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_support_domain_accounts = true 124} 125 126declare_args() { 127 os_account_enable_default_admin_name = true 128} 129 130declare_args() { 131 os_account_enable_account_short_name = false 132} 133 134declare_args() { 135 os_account_support_lock_os_account = false 136} 137 138declare_args() { 139 os_account_activate_last_logged_in_account = false 140} 141 142declare_args() { 143 os_account_enable_account_1 = false 144} 145 146declare_args() { 147 os_account_enable_multiple_foreground_os_accounts = false 148} 149 150if (!defined(global_parts_info) || 151 defined(global_parts_info.hiviewdfx_hicollie)) { 152 hicollie_enable = true 153} else { 154 hicollie_enable = false 155} 156 157if (!defined(global_parts_info) || 158 defined(global_parts_info.security_security_guard)) { 159 security_guard_enabled = true 160} else { 161 security_guard_enabled = false 162} 163 164if (!defined(global_parts_info) || 165 defined(global_parts_info.distributeddatamgr_kv_store)) { 166 has_kv_store_part = true 167 has_app_account_part = true 168} else { 169 has_kv_store_part = false 170 has_app_account_part = false 171} 172 173if (!defined(global_parts_info) || defined(global_parts_info.security_asset)) { 174 has_asset_part = true 175} else { 176 has_asset_part = false 177} 178 179if (!defined(global_parts_info) || defined(global_parts_info.security_huks)) { 180 has_huks_part = true 181} else { 182 has_huks_part = false 183} 184 185if (!defined(global_parts_info) || 186 defined(global_parts_info.customization_config_policy)) { 187 has_config_policy_part = true 188} else { 189 has_config_policy_part = false 190} 191