• 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_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  bundle_active_enable = true
40  if (defined(global_parts_info) &&
41      !defined(global_parts_info.resourceschedule_device_usage_statistics)) {
42    bundle_active_enable = false
43  }
44
45  device_standby_enable = true
46  if (defined(global_parts_info) &&
47      !defined(global_parts_info.resourceschedule_device_standby)) {
48    device_standby_enable = false
49  }
50
51  resourceschedule_bgtaskmgr_enable = true
52  if (defined(global_parts_info) &&
53      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
54    resourceschedule_bgtaskmgr_enable = false
55  }
56
57  workscheduler_with_communication_netmanager_base_enable = true
58  if (defined(global_parts_info) &&
59      !defined(global_parts_info.communication_netmanager_base)) {
60    workscheduler_with_communication_netmanager_base_enable = false
61  }
62
63  powermgr_battery_manager_enable = true
64  if (defined(global_parts_info) &&
65      !defined(global_parts_info.powermgr_battery_manager)) {
66    powermgr_battery_manager_enable = false
67  }
68
69  powermgr_thermal_manager_enable = true
70  if (defined(global_parts_info) &&
71      !defined(global_parts_info.powermgr_thermal_manager)) {
72    powermgr_thermal_manager_enable = false
73  }
74}
75