summaryrefslogtreecommitdiffstats
path: root/xmlserializer
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2014-06-24 18:06:46 +0200
committerMattijs Korpershoek <mattijsx.korpershoek@intel.com>2014-06-25 10:52:19 +0200
commitf394b389ff6202e94d42266ba39144bdcdefe3ba (patch)
treec90f115142ad798292220c007b3ce896c1045435 /xmlserializer
parentb765ef814b45d8fa1da7bd283d26b2cf0e227fbb (diff)
downloadexternal_parameter-framework-f394b389ff6202e94d42266ba39144bdcdefe3ba.zip
external_parameter-framework-f394b389ff6202e94d42266ba39144bdcdefe3ba.tar.gz
external_parameter-framework-f394b389ff6202e94d42266ba39144bdcdefe3ba.tar.bz2
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 <david.wagner@intel.com> Signed-off-by: Mattijs Korpershoek <mattijsx.korpershoek@intel.com>
Diffstat (limited to 'xmlserializer')
-rwxr-xr-xxmlserializer/Android.mk60
1 files changed, 60 insertions, 0 deletions
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)