thermal-engine: Ensure VNDK compliance
- Set LOCAL_VENDOR_MODULE to true while using LOCAL_COPY_HEADERS.
- Create a header library for thermal header file so that it
can be referenced in other modules.
For now, keeping LOCAL_COPY_HEADERS as such not to break
dependent modules in different component. Once all clients
move to reference thermal header library, will remove
LOCAL_COPY_HEADERS.
Change-Id: I8713cacb3dc53991d2066d8b37bc9d2f86e6053c
diff --git a/Android.mk b/Android.mk
index fc1ebe7..3591fce 100644
--- a/Android.mk
+++ b/Android.mk
@@ -3,8 +3,16 @@
ifeq ($(TARGET_USES_QSSI),true)
include $(CLEAR_VARS)
+LOCAL_VENDOR_MODULE := true
LOCAL_COPY_HEADERS_TO := thermal-engine
LOCAL_COPY_HEADERS := ./thermal_client.h
include $(BUILD_COPY_HEADERS)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libThermal_headers
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_VENDOR_MODULE := true
+include $(BUILD_HEADER_LIBRARY)
+
endif