• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  battery_manager_feature_support_notification = false
21  battery_manager_feature_support_notification_string = false
22  battery_manager_feature_enable_wireless_charge = false
23}
24
25if (!defined(global_parts_info) ||
26    defined(global_parts_info.hdf_drivers_interface_display)) {
27  has_drivers_interface_display_part = true
28} else {
29  has_drivers_interface_display_part = false
30}
31
32if (!defined(global_parts_info) ||
33    defined(global_parts_info.hdf_drivers_interface_light)) {
34  has_drivers_interface_light_part = true
35} else {
36  has_drivers_interface_light_part = false
37}
38
39if (!defined(global_parts_info) ||
40    defined(global_parts_info.graphic_graphic_surface)) {
41  has_graphic_surface_part = true
42} else {
43  has_graphic_surface_part = false
44}
45
46if (!defined(global_parts_info) || defined(global_parts_info.arkui_ui_lite)) {
47  has_ui_lite_part = true
48} else {
49  has_ui_lite_part = false
50}
51
52if (!defined(global_parts_info) || defined(global_parts_info.graphic_utils_lite)) {
53  has_graphic_utils_lite_part = true
54} else {
55  has_graphic_utils_lite_part = false
56}
57
58ability_runtime_path = "//foundation/ability/ability_runtime"
59ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi"
60ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api"
61ability_runtime_services_path = "${ability_runtime_path}/services"
62batterymgr_native_part_name = "battery_manager"
63module_output_path = "battery_manager/battery_manager"
64battery_manager_path = "//base/powermgr/battery_manager"
65battery_inner_api = "${battery_manager_path}/interfaces/inner_api"
66battery_frameworks = "${battery_manager_path}/frameworks"
67battery_service = "${battery_manager_path}/services"
68battery_service_native = "${battery_service}/native"
69battery_service_zidl = "${battery_service}/zidl"
70battery_utils = "${battery_manager_path}/utils"
71taihe_generated_file_path_batteryInfo = "${root_out_dir}/taihe/out/powermgr/battery_manager/batteryInfo"
72taihe_generated_file_path_charger = "${root_out_dir}/taihe/out/powermgr/battery_manager/charger"
73