mm-core: Generate omx core header library.
CRs-Fixed: 2596430
Change-Id: If5dab1762e30486193a221d8b604193cb989c3e2
diff --git a/mm-core/Android.mk b/mm-core/Android.mk
index 37a954e..4933092 100644
--- a/mm-core/Android.mk
+++ b/mm-core/Android.mk
@@ -66,11 +66,13 @@
#===============================================================================
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc
LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/media/libplatformconfig
LOCAL_HEADER_LIBRARIES := \
- libutils_headers
+ libutils_headers \
+ libomxcore_headers
+
+LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libomxcore_headers
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libOmxCore
@@ -99,11 +101,13 @@
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc
LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/media/libplatformconfig
LOCAL_HEADER_LIBRARIES := \
- libutils_headers
+ libutils_headers \
+ libomxcore_headers
+
+LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libomxcore_headers
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libmm-omxcore
@@ -125,4 +129,12 @@
include $(BUILD_SHARED_LIBRARY)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libomxcore_headers
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc
+LOCAL_PROPRIETARY_MODULE := true
+
+include $(BUILD_HEADER_LIBRARY)
+
endif #BUILD_TINY_ANDROID