1# Copyright (C) 2022 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 14resourceschedule_path = "//foundation/resourceschedule" 15 16resschedexe_interfaces = "${resourceschedule_path}/resource_schedule_service/ressched_executor/interfaces" 17 18ressched_services = 19 "${resourceschedule_path}/resource_schedule_service/ressched/services" 20 21ressched_common = 22 "${resourceschedule_path}/resource_schedule_service/ressched/common" 23 24ressched_interfaces = 25 "${resourceschedule_path}/resource_schedule_service/ressched/interfaces" 26 27ressched_plugins = 28 "${resourceschedule_path}/resource_schedule_service/ressched/plugins" 29 30ressched_test = 31 "${resourceschedule_path}/resource_schedule_service/ressched/test" 32 33ressched_sched_controller = "${resourceschedule_path}/resource_schedule_service/ressched/sched_controller" 34 35declare_args() { 36 device_movement_perception_enable = true 37 ressched_with_telephony_state_registry_enable = true 38 ressched_with_communication_netmanager_base_enable = true 39 resource_schedule_service_with_ffrt_enable = false 40 resource_schedule_service_with_ext_res_enable = false 41 42 if (defined(global_parts_info) && !defined(global_parts_info.msdp_movement)) { 43 device_movement_perception_enable = false 44 } 45 46 if (defined(global_parts_info) && 47 !defined(global_parts_info.telephony_state_registry)) { 48 ressched_with_telephony_state_registry_enable = false 49 } 50 51 if (defined(global_parts_info) && 52 !defined(global_parts_info.communication_netmanager_base)) { 53 ressched_with_communication_netmanager_base_enable = false 54 } 55 56 ressched_with_resourceschedule_soc_perf_enable = true 57 if (defined(global_parts_info) && 58 !defined(global_parts_info.resourceschedule_soc_perf)) { 59 ressched_with_resourceschedule_soc_perf_enable = false 60 } 61 62 communication_bluetooth_perception_enable = true 63 if (defined(global_parts_info) && 64 !defined(global_parts_info.communication_bluetooth)) { 65 communication_bluetooth_perception_enable = false 66 } 67 68 ressched_with_resourceschedule_multimedia_av_session_enable = true 69 if (defined(global_parts_info) && 70 !defined(global_parts_info.multimedia_av_session)) { 71 ressched_with_resourceschedule_multimedia_av_session_enable = false 72 } 73 74 ressched_power_manager_enable = true 75 if (defined(global_parts_info) && 76 !defined(global_parts_info.powermgr_power_manager)) { 77 ressched_power_manager_enable = false 78 } 79 80 ressched_with_resourceschedule_multimedia_audio_framework_enable = true 81 if (defined(global_parts_info) && 82 !defined(global_parts_info.multimedia_audio_framework)) { 83 ressched_with_resourceschedule_multimedia_audio_framework_enable = false 84 } 85 86 rss_device_standby_enable = true 87 if (defined(global_parts_info) && 88 !defined(global_parts_info.resourceschedule_device_standby)) { 89 rss_device_standby_enable = false 90 } 91 rss_request_enable = true 92 if (defined(global_parts_info) && 93 !defined(global_parts_info.request_request)) { 94 rss_request_enable = false 95 } 96} 97