1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_MODULE := liblocbatterylistener 5LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 6LOCAL_LICENSE_CONDITIONS := notice 7LOCAL_SANITIZE += $(GNSS_SANITIZE) 8# activate the following line for debug purposes only, comment out for production 9#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) 10LOCAL_VENDOR_MODULE := true 11 12LOCAL_CFLAGS += $(GNSS_CFLAGS) 13 14LOCAL_C_INCLUDES += \ 15 $(LOCAL_PATH) \ 16 17LOCAL_SRC_FILES:= \ 18 battery_listener.cpp 19LOCAL_SHARED_LIBRARIES := \ 20 liblog \ 21 libhidlbase \ 22 libcutils \ 23 libutils \ 24 android.hardware.health@1.0 \ 25 android.hardware.health@2.0 \ 26 android.hardware.power@1.2 \ 27 libbase 28 29LOCAL_HEADER_LIBRARIES := \ 30 libgps.utils_headers \ 31 32LOCAL_STATIC_LIBRARIES := libhealthhalutils 33LOCAL_CFLAGS += -DBATTERY_LISTENER_ENABLED 34 35include $(BUILD_STATIC_LIBRARY) 36 37include $(CLEAR_VARS) 38LOCAL_MODULE := liblocbatterylistener_headers 39LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 40LOCAL_LICENSE_CONDITIONS := notice 41LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 42 43include $(BUILD_HEADER_LIBRARY) 44