1# Copyright (c) 2024 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. 13import("//build/ohos.gni") 14 15standby_service_root_path = "//foundation/resourceschedule/device_standby" 16 17standby_service_part_name = "device_standby" 18 19standby_interfaces_path = "${standby_service_root_path}/interfaces" 20 21standby_innerkits_path = "${standby_interfaces_path}/innerkits" 22 23standby_plugins_path = "${standby_service_root_path}/plugins" 24 25standby_service_constraints_path = "${standby_plugins_path}/extend_constraints" 26 27standby_service_strategy_path = "${standby_plugins_path}/strategy" 28 29standby_service_message_listener_path = 30 "${standby_plugins_path}/message_listener" 31 32standby_service_standby_state_path = "${standby_plugins_path}/standby_state" 33 34standby_service_utils_path = "${standby_service_root_path}/utils" 35 36standby_utils_common_path = "${standby_service_utils_path}/common" 37 38standby_utils_policy_path = "${standby_service_utils_path}/policy" 39 40standby_service_frameworks_path = "${standby_service_root_path}/frameworks" 41 42standby_service_path = "${standby_service_root_path}/services" 43 44declare_args() { 45 enable_standby_configpolicy = true 46 if (defined(global_parts_info) && 47 !defined(global_parts_info.customization_config_policy)) { 48 enable_standby_configpolicy = false 49 } 50 51 enable_background_task_mgr = true 52 if (defined(global_parts_info) && 53 !defined(global_parts_info.resourceschedule_background_task_mgr)) { 54 enable_background_task_mgr = false 55 } 56 57 standby_power_manager_enable = true 58 if (defined(global_parts_info) && 59 !defined(global_parts_info.powermgr_power_manager)) { 60 standby_power_manager_enable = false 61 } 62 63 standby_battery_manager_enable = true 64 if (defined(global_parts_info) && 65 !defined(global_parts_info.powermgr_battery_manager)) { 66 standby_battery_manager_enable = false 67 } 68 69 standby_multimodalinput_input_enable = true 70 if (defined(global_parts_info) && 71 !defined(global_parts_info.multimodalinput_input)) { 72 standby_multimodalinput_input_enable = false 73 } 74 75 standby_sensors_sensor_enable = true 76 if (defined(global_parts_info) && 77 !defined(global_parts_info.sensors_sensor)) { 78 standby_sensors_sensor_enable = false 79 } 80 81 standby_communication_netmanager_base_enable = true 82 if (defined(global_parts_info) && 83 !defined(global_parts_info.communication_netmanager_base)) { 84 standby_communication_netmanager_base_enable = false 85 } 86 87 standby_rss_work_scheduler_enable = true 88 if (defined(global_parts_info) && 89 !defined(global_parts_info.resourceschedule_work_scheduler)) { 90 standby_rss_work_scheduler_enable = false 91 } 92 93 device_standby_access_token_enable = true 94 if (defined(global_parts_info) && 95 !defined(global_parts_info.security_access_token)) { 96 device_standby_access_token_enable = false 97 } 98 99 # features 100 device_standby_plugin_enable = true 101} 102