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 106if (!defined(global_parts_info) || 107 defined(global_parts_info.arkui_ace_engine)) { 108 has_ace_engine_part = true 109} else { 110 has_ace_engine_part = false 111} 112 113declare_args() { 114 os_account_multiple_active_accounts = false 115} 116 117declare_args() { 118 os_account_support_deactivate_main_os_account = false 119} 120 121declare_args() { 122 os_account_distributed_feature = true 123} 124 125declare_args() { 126 os_account_test_case_coverage_feature = false 127} 128 129declare_args() { 130 os_account_storage_feature = true 131} 132 133declare_args() { 134 os_account_file_encryption_el1_feature = true 135} 136 137declare_args() { 138 os_account_enable_multiple_os_accounts = true 139} 140 141declare_args() { 142 os_account_enable_default_admin_name = true 143} 144 145declare_args() { 146 os_account_enable_account_short_name = false 147} 148 149declare_args() { 150 os_account_activate_last_logged_in_account = false 151} 152 153if (!defined(global_parts_info) || 154 defined(global_parts_info.hiviewdfx_hicollie)) { 155 hicollie_enable = true 156} else { 157 hicollie_enable = false 158} 159 160if (!defined(global_parts_info) || 161 defined(global_parts_info.security_security_guard)) { 162 security_guard_enabled = true 163} else { 164 security_guard_enabled = false 165} 166 167if (!defined(global_parts_info) || 168 defined(global_parts_info.distributeddatamgr_kv_store)) { 169 has_kv_store_part = true 170 has_app_account_part = true 171} else { 172 has_kv_store_part = false 173 has_app_account_part = false 174} 175 176if (!defined(global_parts_info) || defined(global_parts_info.security_asset)) { 177 has_asset_part = true 178} else { 179 has_asset_part = false 180} 181 182if (!defined(global_parts_info) || defined(global_parts_info.theme_theme_mgr)) { 183 has_theme_mar_part = true 184} else { 185 has_theme_mar_part = false 186} 187