• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_zidl_path = "${worksched_service_path}/zidl"
27
28worksched_kits_path = "${worksched_root_path}/kits"
29
30worksched_utils_path = "${worksched_root_path}/utils/native"
31
32worksched_interfaces_path = "${worksched_root_path}/interfaces"
33
34worksched_frameworks_path = "${worksched_root_path}/frameworks"
35
36worksched_test_path = "${worksched_root_path}/test"
37
38system_type = "default"
39
40declare_args() {
41  work_scheduler_device_enable = true
42  bundle_active_enable = true
43  if (defined(global_parts_info) &&
44      !defined(global_parts_info.resourceschedule_device_usage_statistics)) {
45    bundle_active_enable = false
46  }
47
48  device_standby_enable = true
49  if (defined(global_parts_info) &&
50      !defined(global_parts_info.resourceschedule_device_standby)) {
51    device_standby_enable = false
52  }
53
54  resourceschedule_bgtaskmgr_enable = true
55  if (defined(global_parts_info) &&
56      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
57    resourceschedule_bgtaskmgr_enable = false
58  }
59
60  workscheduler_with_communication_netmanager_base_enable = true
61  if (defined(global_parts_info) &&
62      !defined(global_parts_info.communication_netmanager_base)) {
63    workscheduler_with_communication_netmanager_base_enable = false
64  }
65
66  powermgr_battery_manager_enable = true
67  if (defined(global_parts_info) &&
68      !defined(global_parts_info.powermgr_battery_manager)) {
69    powermgr_battery_manager_enable = false
70  }
71
72  powermgr_thermal_manager_enable = true
73  if (defined(global_parts_info) &&
74      !defined(global_parts_info.powermgr_thermal_manager)) {
75    powermgr_thermal_manager_enable = false
76  }
77
78  powermgr_power_manager_enable = true
79  if (defined(global_parts_info) &&
80      !defined(global_parts_info.powermgr_power_manager)) {
81    powermgr_power_manager_enable = false
82  }
83
84  workscheduler_hicollie_enable = true
85  if (defined(global_parts_info) &&
86      !defined(global_parts_info.hiviewdfx_hicollie)) {
87    workscheduler_hicollie_enable = false
88  }
89}
90