• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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
14access_token_path = "//base/security/access_token"
15access_token_innerkit_path =
16    "//base/security/access_token/interfaces/innerkits/accesstoken"
17module_output_path_interface_privacy =
18    "access_token/access_token/interface_privacy"
19module_output_path_interface_access_token =
20    "access_token/access_token/interface_access_token"
21module_output_path_service_privacy = "access_token/access_token/service_privacy"
22module_output_path_service_access_token =
23    "access_token/access_token/service_access_token"
24module_output_path_unittest_accesstoken = "access_token/access_token"
25module_output_path_unittest_privacy = "access_token/privacy"
26
27declare_args() {
28  access_token_camera_float_window_enable = true
29}
30
31if (!defined(global_parts_info) ||
32    defined(global_parts_info.distributedhardware_device_manager)) {
33  token_sync_enable = true
34} else {
35  token_sync_enable = false
36}
37
38if (!defined(global_parts_info) ||
39    defined(global_parts_info.security_dlp_permission_service)) {
40  dlp_permission_enable = true
41} else {
42  dlp_permission_enable = false
43}
44
45if (!defined(global_parts_info) ||
46    defined(global_parts_info.ability_ability_base)) {
47  ability_base_enable = true
48} else {
49  ability_base_enable = false
50}
51
52if (!defined(global_parts_info) ||
53    defined(global_parts_info.hiviewdfx_hicollie)) {
54  hicollie_enable = true
55} else {
56  hicollie_enable = false
57}
58
59if (!defined(global_parts_info) ||
60    defined(global_parts_info.hiviewdfx_hitrace_native)) {
61  hiviewdfx_hitrace_native_enable = true
62} else {
63  hiviewdfx_hitrace_native_enable = false
64}
65
66if (!defined(global_parts_info) ||
67    defined(global_parts_info.multimedia_audio_framework)) {
68  audio_framework_enable = true
69} else {
70  audio_framework_enable = false
71}
72
73if (!defined(global_parts_info) ||
74    defined(global_parts_info.multimedia_camera_framework)) {
75  camera_framework_enable = true
76} else {
77  camera_framework_enable = false
78}
79
80if (!defined(global_parts_info) ||
81    defined(global_parts_info.ability_ability_runtime)) {
82  ability_runtime_enable = true
83} else {
84  ability_runtime_enable = false
85}
86
87if (!defined(global_parts_info) ||
88    defined(global_parts_info.security_security_component_enhance)) {
89  security_component_enhance_enable = true
90} else {
91  security_component_enhance_enable = false
92}
93
94if (!defined(global_parts_info) ||
95    defined(global_parts_info.customization_config_policy)) {
96  customization_config_policy_enable = true
97} else {
98  customization_config_policy_enable = false
99}
100
101if (!defined(global_parts_info) ||
102    defined(global_parts_info.theme_screenlock_mgr)) {
103  theme_screenlock_mgr_enable = true
104} else {
105  theme_screenlock_mgr_enable = false
106}
107
108if (!defined(global_parts_info) ||
109    defined(global_parts_info.notification_common_event_service)) {
110  common_event_service_enable = true
111} else {
112  common_event_service_enable = false
113}
114
115if (!defined(global_parts_info) ||
116    defined(global_parts_info.notification_eventhandler)) {
117  eventhandler_enable = true
118} else {
119  eventhandler_enable = false
120}
121
122if (!defined(global_parts_info) ||
123    defined(global_parts_info.resourceschedule_background_task_mgr)) {
124  access_token_background_task_mgr_continuous_task_enable = true
125} else {
126  access_token_background_task_mgr_continuous_task_enable = false
127}
128
129if (!defined(global_parts_info) ||
130    defined(global_parts_info.appsecurityprivacy_security_privacy_server)) {
131  access_token_app_security_privacy_service_enable = true
132} else {
133  access_token_app_security_privacy_service_enable = false
134}
135
136if (!defined(global_parts_info) ||
137    defined(global_parts_info.powermgr_power_manager)) {
138  power_manager_enable = true
139} else {
140  power_manager_enable = false
141}
142
143if (defined(global_parts_info) &&
144    defined(global_parts_info.resourceschedule_memmgr_override)) {
145  memory_manager_enable = true
146} else {
147  memory_manager_enable = false
148}
149
150if ("${target_platform}" == "watch" || "${target_platform}" == "wearable") {
151  light_device_enable = true
152} else {
153  light_device_enable = false
154}
155