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/lite/config/component/lite_component.gni") 15import("config.gni") 16 17batterymgr_path = "//base/powermgr/battery_lite" 18 19batterymgr_frameworks_path = "${batterymgr_path}/frameworks/native" 20 21batterymgr_interfaces_path = "${batterymgr_path}/interfaces" 22 23batterymgr_innerkits_path = "${batterymgr_interfaces_path}/innerkits" 24 25batterymgr_kits_path = "${batterymgr_interfaces_path}/kits" 26 27batterymgr_services_path = "${batterymgr_path}/services" 28 29batterymgr_utils_path = "//base/powermgr/powermgr_lite/utils" 30 31declare_args() { 32 battery_mini_system = false 33 battery_small_system = false 34} 35 36if (ohos_kernel_type == "liteos_m") { 37 battery_mini_system = true 38 battery_library_type = "static_library" 39 battery_system_type = "mini" 40} else { 41 battery_small_system = true 42 battery_library_type = "shared_library" 43 battery_system_type = "small" 44} 45