1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_MODULE := liblocbatterylistener 5LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 6LOCAL_LICENSE_CONDITIONS := notice 7LOCAL_VENDOR_MODULE := true 8 9LOCAL_CFLAGS += $(GNSS_CFLAGS) 10 11LOCAL_C_INCLUDES += \ 12 $(LOCAL_PATH) \ 13 14LOCAL_SRC_FILES:= \ 15 battery_listener.cpp 16LOCAL_SHARED_LIBRARIES := \ 17 liblog \ 18 libhidlbase \ 19 libcutils \ 20 libutils \ 21 android.hardware.health@1.0 \ 22 android.hardware.health@2.0 \ 23 android.hardware.power@1.2 \ 24 libbase 25 26LOCAL_STATIC_LIBRARIES := libhealthhalutils 27LOCAL_CFLAGS += -DBATTERY_LISTENER_ENABLED 28 29include $(BUILD_STATIC_LIBRARY) 30 31include $(CLEAR_VARS) 32LOCAL_MODULE := liblocbatterylistener_headers 33LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 34LOCAL_LICENSE_CONDITIONS := notice 35LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 36 37include $(BUILD_HEADER_LIBRARY) 38