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 14import("//build/ohos.gni") 15 16ability_runtime_path = "//foundation/ability/ability_runtime" 17 18ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" 19 20worksched_native_part_name = "work_scheduler" 21 22worksched_root_path = "//foundation/resourceschedule/work_scheduler" 23 24worksched_service_path = "${worksched_root_path}/services" 25 26worksched_kits_path = "${worksched_root_path}/kits" 27 28worksched_utils_path = "${worksched_root_path}/utils/native" 29 30worksched_interfaces_path = "${worksched_root_path}/interfaces" 31 32worksched_frameworks_path = "${worksched_root_path}/frameworks" 33 34worksched_test_path = "${worksched_root_path}/test" 35 36system_type = "default" 37 38declare_args() { 39 work_scheduler_device_enable = true 40 bundle_active_enable = true 41 if (defined(global_parts_info) && 42 !defined(global_parts_info.resourceschedule_device_usage_statistics)) { 43 bundle_active_enable = false 44 } 45 46 device_standby_enable = true 47 if (defined(global_parts_info) && 48 !defined(global_parts_info.resourceschedule_device_standby)) { 49 device_standby_enable = false 50 } 51 52 resourceschedule_bgtaskmgr_enable = true 53 if (defined(global_parts_info) && 54 !defined(global_parts_info.resourceschedule_background_task_mgr)) { 55 resourceschedule_bgtaskmgr_enable = false 56 } 57 58 workscheduler_with_communication_netmanager_base_enable = true 59 if (defined(global_parts_info) && 60 !defined(global_parts_info.communication_netmanager_base)) { 61 workscheduler_with_communication_netmanager_base_enable = false 62 } 63 64 powermgr_battery_manager_enable = true 65 if (defined(global_parts_info) && 66 !defined(global_parts_info.powermgr_battery_manager)) { 67 powermgr_battery_manager_enable = false 68 } 69 70 powermgr_thermal_manager_enable = true 71 if (defined(global_parts_info) && 72 !defined(global_parts_info.powermgr_thermal_manager)) { 73 powermgr_thermal_manager_enable = false 74 } 75 76 powermgr_power_manager_enable = true 77 if (defined(global_parts_info) && 78 !defined(global_parts_info.powermgr_power_manager)) { 79 powermgr_power_manager_enable = false 80 } 81 82 workscheduler_hicollie_enable = true 83 if (defined(global_parts_info) && 84 !defined(global_parts_info.hiviewdfx_hicollie)) { 85 workscheduler_hicollie_enable = false 86 } 87} 88