1# Copyright (c) 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 14declare_args() { 15 webview_soc_perf_enable = true 16 webview_audio_enable = true 17 webview_location_enable = true 18 webview_media_player_enable = true 19 webview_camera_enable = true 20 webview_telephony_enable = true 21 webview_battery_manager_enable = true 22 webview_power_manager_enable = true 23 webview_avcodec_enable = true 24 webview_print_enable = true 25 webview_enterprise_device_manager_enable = true 26 27 if (defined(global_parts_info) && 28 !defined(global_parts_info.resourceschedule_soc_perf)) { 29 webview_soc_perf_enable = false 30 } 31 if (defined(global_parts_info) && 32 (!defined(global_parts_info.multimedia_audio_framework) || 33 !defined(global_parts_info.multimedia_av_session))) { 34 webview_audio_enable = false 35 } 36 if (defined(global_parts_info) && 37 !defined(global_parts_info.location_location)) { 38 webview_location_enable = false 39 } 40 if (defined(global_parts_info) && 41 !defined(global_parts_info.multimedia_player_framework)) { 42 webview_media_player_enable = false 43 } 44 if (defined(global_parts_info) && 45 !defined(global_parts_info.multimedia_camera_framework)) { 46 webview_camera_enable = false 47 } 48 if (defined(global_parts_info) && 49 !defined(global_parts_info.multimedia_av_codec)) { 50 webview_avcodec_enable = false 51 } 52 if (defined(global_parts_info) && 53 (!defined(global_parts_info.telephony_cellular_data) || 54 !defined(global_parts_info.telephony_core_service))) { 55 webview_telephony_enable = false 56 } 57 if (defined(global_parts_info) && 58 !defined(global_parts_info.powermgr_battery_manager)) { 59 webview_battery_manager_enable = false 60 } 61 if (defined(global_parts_info) && 62 !defined(global_parts_info.powermgr_power_manager)) { 63 webview_power_manager_enable = false 64 } 65 if (defined(global_parts_info) && 66 !defined(global_parts_info.print_print_fwk)) { 67 webview_print_enable = false 68 } 69 if (defined(global_parts_info) && 70 !defined(global_parts_info.customization_enterprise_device_management)) { 71 webview_enterprise_device_manager_enable = false 72 } 73} 74