1# Copyright (c) 2021 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
16declare_args() {
17  battery_manager_feature_set_low_capacity_threshold = false
18  battery_manager_feature_enable_charger = false
19  battery_manager_feature_enable_charging_sound = false
20}
21
22if (!defined(global_parts_info) ||
23    defined(global_parts_info.hdf_drivers_interface_display)) {
24  has_drivers_interface_display_part = true
25} else {
26  has_drivers_interface_display_part = false
27}
28
29if (!defined(global_parts_info) ||
30    defined(global_parts_info.hdf_drivers_interface_light)) {
31  has_drivers_interface_light_part = true
32} else {
33  has_drivers_interface_light_part = false
34}
35
36if (!defined(global_parts_info) ||
37    defined(global_parts_info.graphic_graphic_surface)) {
38  has_graphic_surface_part = true
39} else {
40  has_graphic_surface_part = false
41}
42
43if (!defined(global_parts_info) || defined(global_parts_info.arkui_ui_lite)) {
44  has_ui_lite_part = true
45} else {
46  has_ui_lite_part = false
47}
48
49ability_runtime_path = "//foundation/ability/ability_runtime"
50ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi"
51ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api"
52ability_runtime_services_path = "${ability_runtime_path}/services"
53batterymgr_native_part_name = "battery_manager"
54module_output_path = "${batterymgr_native_part_name}/battery_manager"
55battery_manager_path = "//base/powermgr/battery_manager"
56battery_inner_api = "${battery_manager_path}/interfaces/inner_api"
57battery_frameworks = "${battery_manager_path}/frameworks"
58battery_service = "${battery_manager_path}/services"
59battery_service_native = "${battery_service}/native"
60battery_service_zidl = "${battery_service}/zidl"
61battery_utils = "${battery_manager_path}/utils"
62