xref: /base/powermgr/battery_lite/batterymgr.gni (revision 413470f0)
1413470f0Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
2413470f0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3413470f0Sopenharmony_ci# you may not use this file except in compliance with the License.
4413470f0Sopenharmony_ci# You may obtain a copy of the License at
5413470f0Sopenharmony_ci#
6413470f0Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7413470f0Sopenharmony_ci#
8413470f0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9413470f0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10413470f0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11413470f0Sopenharmony_ci# See the License for the specific language governing permissions and
12413470f0Sopenharmony_ci# limitations under the License.
13413470f0Sopenharmony_ci
14413470f0Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
15413470f0Sopenharmony_ciimport("config.gni")
16413470f0Sopenharmony_ci
17413470f0Sopenharmony_cibatterymgr_path = "//base/powermgr/battery_lite"
18413470f0Sopenharmony_ci
19413470f0Sopenharmony_cibatterymgr_frameworks_path = "${batterymgr_path}/frameworks/native"
20413470f0Sopenharmony_ci
21413470f0Sopenharmony_cibatterymgr_interfaces_path = "${batterymgr_path}/interfaces"
22413470f0Sopenharmony_ci
23413470f0Sopenharmony_cibatterymgr_innerkits_path = "${batterymgr_interfaces_path}/innerkits"
24413470f0Sopenharmony_ci
25413470f0Sopenharmony_cibatterymgr_kits_path = "${batterymgr_interfaces_path}/kits"
26413470f0Sopenharmony_ci
27413470f0Sopenharmony_cibatterymgr_services_path = "${batterymgr_path}/services"
28413470f0Sopenharmony_ci
29413470f0Sopenharmony_cibatterymgr_utils_path = "//base/powermgr/powermgr_lite/utils"
30413470f0Sopenharmony_ci
31413470f0Sopenharmony_cideclare_args() {
32413470f0Sopenharmony_ci  battery_mini_system = false
33413470f0Sopenharmony_ci  battery_small_system = false
34413470f0Sopenharmony_ci}
35413470f0Sopenharmony_ci
36413470f0Sopenharmony_ciif (ohos_kernel_type == "liteos_m") {
37413470f0Sopenharmony_ci  battery_mini_system = true
38413470f0Sopenharmony_ci  battery_library_type = "static_library"
39413470f0Sopenharmony_ci  battery_system_type = "mini"
40413470f0Sopenharmony_ci} else {
41413470f0Sopenharmony_ci  battery_small_system = true
42413470f0Sopenharmony_ci  battery_library_type = "shared_library"
43413470f0Sopenharmony_ci  battery_system_type = "small"
44413470f0Sopenharmony_ci}
45