tinyxml2: enable tinyxml2 shared library generation
This allows user space components to link to this library dynamically.
Change-Id: I7c14dc57f0c60c7a1a207ed84e07551fe61d0973
diff --git a/Android.mk b/Android.mk
index da1d16c..9ee97b5 100644
--- a/Android.mk
+++ b/Android.mk
@@ -22,3 +22,16 @@
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_STATIC_LIBRARY)
+
+# shared library
+include $(CLEAR_VARS)
+
+LOCAL_MODULE:=libtinyxml2
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_WHOLE_STATIC_LIBRARIES := libtinyxml2
+ifeq ($(LOG_TO_ANDROID_LOGCAT),true)
+LOCAL_SHARED_LIBRARIES+= libcutils
+endif
+
+include $(BUILD_SHARED_LIBRARY)