• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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 = "${standby_plugins_path}/message_listener"
30
31standby_service_standby_state_path = "${standby_plugins_path}/standby_state"
32
33standby_service_utils_path = "${standby_service_root_path}/utils"
34
35standby_utils_common_path = "${standby_service_utils_path}/common"
36
37standby_utils_policy_path = "${standby_service_utils_path}/policy"
38
39standby_service_frameworks_path = "${standby_service_root_path}/frameworks"
40
41standby_service_path = "${standby_service_root_path}/services"
42
43declare_args() {
44  enable_standby_configpolicy = true
45  enable_background_task_mgr = true
46
47  if (defined(global_parts_info) &&
48    !defined(global_parts_info.customization_config_policy)) {
49        enable_standby_configpolicy = false
50  }
51
52  if (defined(global_parts_info) &&
53    !defined(global_parts_info.resourceschedule_background_task_mgr)) {
54        enable_background_task_mgr = false
55  }
56}