1413470f0Sopenharmony_ci# Copyright (c) 2021-2020 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("//base/powermgr/battery_lite/batterymgr.gni") 15413470f0Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 16413470f0Sopenharmony_ci 17413470f0Sopenharmony_cistatic_library("battery_impl") { 18413470f0Sopenharmony_ci sources = [ "battery_framework.c" ] 19413470f0Sopenharmony_ci 20413470f0Sopenharmony_ci include_dirs = [ 21413470f0Sopenharmony_ci "${batterymgr_kits_path}", 22413470f0Sopenharmony_ci "${batterymgr_frameworks_path}/include", 23413470f0Sopenharmony_ci "${batterymgr_services_path}/include", 24413470f0Sopenharmony_ci "${batterymgr_frameworks_path}/include/${battery_system_type}", 25413470f0Sopenharmony_ci "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite", 26413470f0Sopenharmony_ci ] 27413470f0Sopenharmony_ci 28413470f0Sopenharmony_ci deps = [ 29413470f0Sopenharmony_ci "//device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix:posix", 30413470f0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 31413470f0Sopenharmony_ci ] 32413470f0Sopenharmony_ci} 33