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" 15ace_engine_path = "//foundation/arkui/ace_engine" 16audio_framework_path = "//foundation/multimedia/audio_framework" 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" 24VENDOR_CONFIG_PATH = rebase_path( 25 "//vendor/${product_company}/${product_name}/base/security/access_token/access_token_impl.gni") 26CMD = "if [ -f ${VENDOR_CONFIG_PATH} ]; then echo true; else echo false; fi" 27 28vendor_config_exist = 29 exec_script("//build/lite/run_shell_cmd.py", [ CMD ], "value") 30if (vendor_config_exist) { 31 import( 32 "//vendor/${product_company}/${product_name}/base/security/access_token/access_token_impl.gni") 33} else { 34 access_token_impl_sources = [] 35 access_token_impl_include_dirs = [] 36} 37 38if (!defined(global_parts_info) || 39 defined(global_parts_info.distributedhardware_device_manager)) { 40 token_sync_enable = true 41} else { 42 token_sync_enable = false 43} 44 45if (!defined(global_parts_info) || 46 defined(global_parts_info.security_dlp_permission_service)) { 47 dlp_permission_enable = true 48} else { 49 dlp_permission_enable = false 50} 51 52if (!defined(global_parts_info) || 53 defined(global_parts_info.ability_ability_base)) { 54 ability_base_enable = true 55} else { 56 ability_base_enable = false 57} 58 59if (!defined(global_parts_info) || 60 defined(global_parts_info.hiviewdfx_hicollie)) { 61 hicollie_enable = true 62} else { 63 hicollie_enable = false 64} 65 66if (!defined(global_parts_info) || 67 defined(global_parts_info.hiviewdfx_hitrace_native)) { 68 hiviewdfx_hitrace_native_enable = true 69} else { 70 hiviewdfx_hitrace_native_enable = false 71} 72 73if (!defined(global_parts_info) || 74 defined(global_parts_info.multimedia_audio_framework)) { 75 audio_framework_enable = true 76} else { 77 audio_framework_enable = false 78} 79 80if (!defined(global_parts_info) || 81 defined(global_parts_info.multimedia_camera_framework)) { 82 camera_framework_enable = true 83} else { 84 camera_framework_enable = false 85} 86 87if (!defined(global_parts_info) || 88 defined(global_parts_info.ability_ability_runtime)) { 89 ability_runtime_enable = true 90} else { 91 ability_runtime_enable = false 92} 93 94if (!defined(global_parts_info) || 95 defined(global_parts_info.powermgr_power_manager)) { 96 power_manager_enable = true 97} else { 98 power_manager_enable = false 99} 100 101if (!defined(global_parts_info) || 102 defined(global_parts_info.security_security_component_enhance)) { 103 security_component_enhance_enable = true 104} else { 105 security_component_enhance_enable = false 106} 107 108if (!defined(global_parts_info) || 109 defined(global_parts_info.resourceschedule_ffrt)) { 110 resourceschedule_ffrt_enable = true 111} else { 112 resourceschedule_ffrt_enable = false 113} 114 115if (!defined(global_parts_info) || 116 defined(global_parts_info.customization_config_policy)) { 117 customization_config_policy_enable = true 118} else { 119 customization_config_policy_enable = false 120} 121 122if (!defined(global_parts_info) || 123 defined(global_parts_info.theme_screenlock_mgr)) { 124 theme_screenlock_mgr_enable = true 125} else { 126 theme_screenlock_mgr_enable = false 127} 128 129if (!defined(global_parts_info) || 130 defined(global_parts_info.notification_common_event_service)) { 131 common_event_service_enable = true 132} else { 133 common_event_service_enable = false 134} 135 136if (!defined(global_parts_info) || 137 defined(global_parts_info.notification_eventhandler)) { 138 eventhandler_enable = true 139} else { 140 eventhandler_enable = false 141} 142 143declare_args() { 144 access_token_camera_float_window_enable = true 145} 146