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 34system_type = "default" 35 36declare_args() { 37 bundle_active_enable = true 38 if (defined(global_parts_info) && 39 !defined(global_parts_info.resourceschedule_device_usage_statistics)) { 40 bundle_active_enable = false 41 } 42 43 resourceschedule_bgtaskmgr_enable = true 44 if (defined(global_parts_info) && 45 !defined(global_parts_info.resourceschedule_background_task_mgr)) { 46 resourceschedule_bgtaskmgr_enable = false 47 } 48} 49