From 884dea7531962b17ef843ac2175faa050e8b0758 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Apr 2014 12:57:06 +0200 Subject: Add support for ordered types, mixed content --- dist/examples/cxx/tree/makefile | 2 +- dist/examples/cxx/tree/order/element/makefile | 31 ++++++++++++++++++++++++++ dist/examples/cxx/tree/order/makefile | 11 +++++++++ dist/examples/cxx/tree/order/mixed/makefile | 32 +++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 dist/examples/cxx/tree/order/element/makefile create mode 100644 dist/examples/cxx/tree/order/makefile create mode 100644 dist/examples/cxx/tree/order/mixed/makefile (limited to 'dist/examples/cxx/tree') diff --git a/dist/examples/cxx/tree/makefile b/dist/examples/cxx/tree/makefile index 70226f9..44e7a0f 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 performance polymorphism streaming wildcard +multiroot order performance polymorphism streaming wildcard ifeq ($(WITH_ZLIB),1) dirs += compression diff --git a/dist/examples/cxx/tree/order/element/makefile b/dist/examples/cxx/tree/order/element/makefile new file mode 100644 index 0000000..31f5ec5 --- /dev/null +++ b/dist/examples/cxx/tree/order/element/makefile @@ -0,0 +1,31 @@ +root := ../../../.. + +include $(root)/build/cxx/rules.make +include $(root)/build/xsd/tree-rules.make + + +override XSDFLAGS += --generate-serialization --generate-wildcard --ordered-type batch + + +# Build. +# +driver: driver.o transactions.o + +transactions.o: transactions.cxx transactions.hxx +driver.o: driver.cxx transactions.hxx + +transactions.cxx transactions.hxx: transactions.xsd + + +# Test +# +.PHONY: test +test: driver transactions.xml + ./driver transactions.xml + + +# Clean. +# +.PHONY: clean +clean: + rm -f transactions.o transactions.?xx driver.o driver diff --git a/dist/examples/cxx/tree/order/makefile b/dist/examples/cxx/tree/order/makefile new file mode 100644 index 0000000..2713b6e --- /dev/null +++ b/dist/examples/cxx/tree/order/makefile @@ -0,0 +1,11 @@ +dirs := element mixed + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +% :: $(dirs) ; diff --git a/dist/examples/cxx/tree/order/mixed/makefile b/dist/examples/cxx/tree/order/mixed/makefile new file mode 100644 index 0000000..b7929d9 --- /dev/null +++ b/dist/examples/cxx/tree/order/mixed/makefile @@ -0,0 +1,32 @@ +root := ../../../.. + +include $(root)/build/cxx/rules.make +include $(root)/build/xsd/tree-rules.make + + +override XSDFLAGS += --generate-serialization --ordered-type-mixed + + +# Build. +# +driver: driver.o text.o + +text.o: text.cxx text.hxx +driver.o: driver.cxx text.hxx + +text.cxx text.hxx: text.xsd + + +# Test +# +.PHONY: test +test: driver text.xml + ./driver text.xml + + +# Clean. +# +.PHONY: clean +clean: + rm -f text.o text.?xx driver.o driver + -- cgit v1.1