1413470f0Sopenharmony_ci# Copyright (c) 2021-2022 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_cisource_set("battery_impl") { 18413470f0Sopenharmony_ci cflags = [ "-fPIC" ] 19413470f0Sopenharmony_ci cflags_cc = cflags 20413470f0Sopenharmony_ci 21413470f0Sopenharmony_ci sources = [ "battery_framework.c" ] 22413470f0Sopenharmony_ci 23413470f0Sopenharmony_ci include_dirs = [ 24413470f0Sopenharmony_ci "${batterymgr_kits_path}", 25413470f0Sopenharmony_ci "${batterymgr_frameworks_path}/include", 26413470f0Sopenharmony_ci "${batterymgr_frameworks_path}/include/${battery_system_type}", 27413470f0Sopenharmony_ci "${batterymgr_services_path}/include", 28413470f0Sopenharmony_ci "${batterymgr_services_path}/include/${battery_system_type}", 29413470f0Sopenharmony_ci ] 30413470f0Sopenharmony_ci 31413470f0Sopenharmony_ci deps = [ "//foundation/systemabilitymgr/samgr_lite/samgr:samgr" ] 32413470f0Sopenharmony_ci} 33413470f0Sopenharmony_ci#source_set("batteryclient_impl") { 34413470f0Sopenharmony_ci# cflags = [ "-fPIC" ] 35413470f0Sopenharmony_ci# cflags_cc = cflags 36413470f0Sopenharmony_ci# 37413470f0Sopenharmony_ci# sources = [ 38413470f0Sopenharmony_ci# "battery_client.cpp", 39413470f0Sopenharmony_ci# ] 40413470f0Sopenharmony_ci# 41413470f0Sopenharmony_ci# include_dirs = [ 42413470f0Sopenharmony_ci# "${batterymgr_frameworks_path}/include", 43413470f0Sopenharmony_ci# "${batterymgr_frameworks_path}/include/${battery_system_type}", 44413470f0Sopenharmony_ci# "${batterymgr_services_path}/include", 45413470f0Sopenharmony_ci# "${batterymgr_services_path}/include/${battery_system_type}", 46413470f0Sopenharmony_ci# ] 47413470f0Sopenharmony_ci# 48413470f0Sopenharmony_ci# deps = [ "//foundation/systemabilitymgr/samgr_lite/samgr:samgr" ] 49413470f0Sopenharmony_ci#} 50