• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
23
24app_account_core_path = "${os_account_path}/frameworks/appaccount/core"
25app_account_extension_path =
26    "${os_account_path}/frameworks/appaccount/extension"
27app_account_interfaces_native_path =
28    "${os_account_path}/interfaces/innerkits/appaccount/native"
29app_account_innerkits_native_path =
30    "${os_account_path}/frameworks/appaccount/native"
31app_account_services_path = "${os_account_path}/services/accountmgr"
32app_account_kits_path = "${os_account_path}/interfaces/kits/napi/appaccount"
33
34os_account_interfaces_native_path =
35    "${os_account_path}/interfaces/innerkits/osaccount/native"
36os_account_innerkits_native_path =
37    "${os_account_path}/frameworks/osaccount/native"
38os_account_core_path = "${os_account_path}/frameworks/osaccount/core"
39os_account_kits_path = "${os_account_path}/interfaces/kits/napi/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
57if (!defined(global_parts_info) ||
58    defined(global_parts_info.useriam_user_auth_framework)) {
59  has_user_auth_part = true
60  has_user_idm_part = true
61} else {
62  has_user_auth_part = false
63  has_user_idm_part = false
64}
65
66if (!defined(global_parts_info) ||
67    defined(global_parts_info.useriam_pin_auth)) {
68  has_pin_auth_part = true
69} else {
70  has_pin_auth_part = false
71}
72
73if (!defined(global_parts_info) ||
74    defined(global_parts_info.notification_common_event_service)) {
75  has_ces_part = true
76} else {
77  has_ces_part = false
78}
79
80if (!defined(global_parts_info) ||
81    defined(global_parts_info.hiviewdfx_hisysevent)) {
82  has_hiviewdfx_hisysevent_part = true
83} else {
84  has_hiviewdfx_hisysevent_part = false
85}
86
87if (!defined(global_parts_info) ||
88    defined(global_parts_info.hiviewdfx_hitrace)) {
89  has_hiviewdfx_hitrace_part = true
90} else {
91  has_hiviewdfx_hitrace_part = false
92}
93
94if (!defined(global_parts_info) ||
95    defined(global_parts_info.filemanagement_storage_service)) {
96  has_storage_service_part = true
97} else {
98  has_storage_service_part = false
99}
100
101declare_args() {
102  os_account_multiple_active_accounts = false
103}
104
105declare_args() {
106  os_account_distributed_feature = true
107}
108
109declare_args() {
110  os_account_test_case_coverage_feature = false
111}
112
113declare_args() {
114  os_account_storage_feature = true
115}
116
117declare_args() {
118  os_account_file_encryption_el1_feature = true
119}
120
121if (!defined(global_parts_info) ||
122    defined(global_parts_info.hiviewdfx_hicollie)) {
123  hicollie_enable = true
124} else {
125  hicollie_enable = false
126}
127
128if (!defined(global_parts_info) ||
129    defined(global_parts_info.security_security_guard)) {
130  security_guard_enabled = true
131} else {
132  security_guard_enabled = false
133}
134
135if (!defined(global_parts_info) ||
136    defined(global_parts_info.distributeddatamgr_kv_store)) {
137  has_kv_store_part = true
138  has_app_account_part = true
139} else {
140  has_kv_store_part = false
141  has_app_account_part = false
142}
143