From f394b389ff6202e94d42266ba39144bdcdefe3ba Mon Sep 17 00:00:00 2001 From: David Wagner Date: Tue, 24 Jun 2014 18:06:46 +0200 Subject: Android.mk hack for compiling libxml with schemas enabled The "Schema" feature is enabled in the official libxml2. We use that feature to validate the xml files given to the parameter-framework. In the libxml2 aosp version, this feature is not enabled. This patch adds a new target, libxml2-schemas, which contains the "Schemas" feature. This should be removed when the "Schema" feature is integrated into the aosp's libxml2 version. Change-Id: Ida72de36e7fd196063a332ee70b30c0f0cb69024 Signed-off-by: David Wagner Signed-off-by: Mattijs Korpershoek --- xmlserializer/Android.mk | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'xmlserializer') diff --git a/xmlserializer/Android.mk b/xmlserializer/Android.mk index 0e4efeb..fabbf84 100755 --- a/xmlserializer/Android.mk +++ b/xmlserializer/Android.mk @@ -111,3 +111,63 @@ LOCAL_LDLIBS += $(common_ldlibs) LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) include $(BUILD_HOST_STATIC_LIBRARY) + +# +# libxml2-schemas +# +LOCAL_PATH := external/libxml2 +include $(CLEAR_VARS) +LOCAL_SRC_FILES := \ + SAX.c \ + entities.c \ + encoding.c \ + error.c \ + parserInternals.c \ + parser.c \ + tree.c \ + hash.c \ + list.c \ + xmlIO.c \ + xmlmemory.c \ + uri.c \ + valid.c \ + xlink.c \ + HTMLparser.c \ + HTMLtree.c \ + debugXML.c \ + xpath.c \ + xpointer.c \ + xinclude.c \ + nanohttp.c \ + nanoftp.c \ + DOCBparser.c \ + catalog.c \ + globals.c \ + threads.c \ + c14n.c \ + xmlstring.c \ + xmlregexp.c \ + xmlschemas.c \ + xmlschemastypes.c \ + xmlunicode.c \ + xmlreader.c \ + relaxng.c \ + dict.c \ + SAX2.c \ + legacy.c \ + chvalid.c \ + pattern.c \ + xmlsave.c \ + xmlmodule.c \ + xmlwriter.c \ + schematron.c + +LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/icu4c/common +LOCAL_CFLAGS := \ + -DLIBXML_EXPR_ENABLED \ + -DLIBXML_REGEXP_ENABLED \ + -DLIBXML_PATTERN_ENABLED \ + -DLIBXML_SCHEMAS_ENABLED \ + -DLIBXML_UNICODE_ENABLED +LOCAL_MODULE:= libxml2-schemas +include $(BUILD_HOST_STATIC_LIBRARY) -- cgit v1.1