summaryrefslogtreecommitdiff
path: root/dist/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-10 12:18:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-10 12:18:02 +0200
commit8ffa44b96b668b0286aa73cc331b59d4cef38d48 (patch)
treef877fdad915719673606aff7b8b7e693c7baf376 /dist/examples
parentaabb88ef1fc3ada75b7210b73c05e73af5c653a8 (diff)
Add example of more secure XML parsing
Diffstat (limited to 'dist/examples')
-rw-r--r--dist/examples/cxx/tree/makefile2
-rw-r--r--dist/examples/cxx/tree/secure/makefile28
2 files changed, 29 insertions, 1 deletions
diff --git a/dist/examples/cxx/tree/makefile b/dist/examples/cxx/tree/makefile
index 44e7a0f..32b44de 100644
--- a/dist/examples/cxx/tree/makefile
+++ b/dist/examples/cxx/tree/makefile
@@ -1,5 +1,5 @@
dirs := binary caching embedded custom hello library messaging mixed \
-multiroot order performance polymorphism streaming wildcard
+multiroot order performance polymorphism secure streaming wildcard
ifeq ($(WITH_ZLIB),1)
dirs += compression
diff --git a/dist/examples/cxx/tree/secure/makefile b/dist/examples/cxx/tree/secure/makefile
new file mode 100644
index 0000000..4898a10
--- /dev/null
+++ b/dist/examples/cxx/tree/secure/makefile
@@ -0,0 +1,28 @@
+root := ../../..
+
+include $(root)/build/cxx/rules.make
+include $(root)/build/xsd/tree-rules.make
+
+# Build.
+#
+driver: driver.o secure-dom-parser.o library.o
+
+library.o: library.cxx library.hxx
+secure-dom-parser.o: secure-dom-parser.cxx secure-dom-parser.hxx
+driver.o: driver.cxx secure-dom-parser.hxx library.hxx
+
+library.cxx library.hxx: library.xsd
+
+
+# Test
+#
+.PHONY: test
+test: driver library.xml
+ ./driver library.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f library.o library.?xx secure-dom-parser.o driver.o driver