summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-07-11 12:05:15 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-07-11 12:05:15 (GMT)
commit21d982e3a5551877c4fc6159ff2c3fe679844f33 (patch)
tree3508563e38269d65882ba5c3a7a1a88e52916a50 /src
parentcf9db3db4d6a56229aa9567cd436822e03d301f5 (diff)
downloadmxe-21d982e3a5551877c4fc6159ff2c3fe679844f33.zip
mxe-21d982e3a5551877c4fc6159ff2c3fe679844f33.tar.gz
mxe-21d982e3a5551877c4fc6159ff2c3fe679844f33.tar.bz2
test program for package xerces
Diffstat (limited to 'src')
-rw-r--r--src/xerces-test.cpp24
-rw-r--r--src/xerces.mk5
2 files changed, 29 insertions, 0 deletions
diff --git a/src/xerces-test.cpp b/src/xerces-test.cpp
new file mode 100644
index 0000000..feba8d3
--- /dev/null
+++ b/src/xerces-test.cpp
@@ -0,0 +1,24 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+#include <xercesc/parsers/SAXParser.hpp>
+
+XERCES_CPP_NAMESPACE_USE
+
+int main(int argc, char *argv[])
+{
+ (void)argc;
+ (void)argv;
+
+ XMLPlatformUtils::Initialize();
+ {
+ SAXParser parser;
+ parser.setValidationScheme(SAXParser::Val_Always);
+ parser.setDoNamespaces(true);
+ parser.setDoSchema(true);
+ parser.setValidationSchemaFullChecking(false);
+ }
+ XMLPlatformUtils::Terminate();
+
+ return 0;
+}
diff --git a/src/xerces.mk b/src/xerces.mk
index 115c9a1..985be62 100644
--- a/src/xerces.mk
+++ b/src/xerces.mk
@@ -46,4 +46,9 @@ define $(PKG)_BUILD
LIBS="`$(TARGET)-pkg-config --libs libcurl`"
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+
+ '$(TARGET)-g++' \
+ -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-xerces.exe' \
+ -lxerces-c
endef