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("//base/powermgr/battery_lite/batterymgr.gni") 15import("//build/lite/config/component/lite_component.gni") 16 17local_include_dirs = [] 18local_deps = [] 19 20if (battery_mini_system) { 21 local_include_dirs += [ 22 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite", 23 "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", 24 ] 25 26 local_deps += 27 [ "//base/powermgr/battery_lite/frameworks/native/src/mini:battery_impl" ] 28} else { 29 local_deps += [ 30 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 31 "//base/powermgr/battery_lite/frameworks/native/src/small:battery_impl", 32 ] 33} 34 35config("batterymgr_public_config") { 36 include_dirs = [ 37 "${batterymgr_innerkits_path}", 38 "${batterymgr_kits_path}", 39 ] 40} 41 42lite_library("batterymgr") { 43 target_type = battery_library_type 44 45 sources = [] 46 47 include_dirs = [ 48 "include", 49 "include/${battery_system_type}", 50 "//utils/native/lite/include", 51 ] 52 include_dirs += local_include_dirs 53 54 public_configs = [ ":batterymgr_public_config" ] 55 56 deps = [ "//foundation/distributedschedule/samgr_lite/samgr:samgr" ] 57 deps += local_deps 58} 59