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("../../batterymgr.gni") 15 16config("batterysrv_public_config") { 17 include_dirs = [ "native/include" ] 18} 19 20ohos_shared_library("batterysrv_client") { 21 sanitize = { 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 27 branch_protector_ret = "pac_ret" 28 29 sources = [ "${battery_frameworks}/native/src/battery_srv_client.cpp" ] 30 31 deps = [ "${battery_service_zidl}:batterysrv_proxy" ] 32 33 configs = [ "${battery_utils}:coverage_flags" ] 34 35 public_configs = [ 36 "${battery_service_zidl}:batterysrv_public_config", 37 "${battery_utils}:utils_config", 38 ":batterysrv_public_config", 39 ] 40 41 external_deps = [ 42 "c_utils:utils", 43 "hilog:libhilog", 44 "ipc:ipc_core", 45 "samgr:samgr_proxy", 46 ] 47 install_images = [ system_base_dir ] 48 relative_install_dir = "platformsdk" 49 50 subsystem_name = "powermgr" 51 innerapi_tags = [ 52 "platformsdk", 53 "sasdk", 54 ] 55 part_name = "battery_manager" 56} 57