aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/hybrid/streaming/nmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/hybrid/streaming/nmakefile')
-rw-r--r--dist/examples/cxx/hybrid/streaming/nmakefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/dist/examples/cxx/hybrid/streaming/nmakefile b/dist/examples/cxx/hybrid/streaming/nmakefile
new file mode 100644
index 0000000..c3ae34a
--- /dev/null
+++ b/dist/examples/cxx/hybrid/streaming/nmakefile
@@ -0,0 +1,58 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+!if "$(XSDE_STL)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl
+!endif
+
+!if "$(XSDE_LONGLONG)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long
+!endif
+
+!if "$(XSDE_PARSER_VALIDATION)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-validation
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+driver.exe: driver.obj position.obj position-pskel.obj position-pimpl.obj \
+position-sskel.obj position-simpl.obj object-pimpl.obj object-simpl.obj \
+$(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx position.hxx position-pimpl.hxx position-simpl.hxx
+position.obj: position.cxx position.hxx
+position-pskel.obj: position-pskel.cxx
+position-pimpl.obj: position-pimpl.cxx
+position-simpl.obj: position-simpl.cxx
+position-simpl.obj: position-simpl.cxx
+object-pimpl.obj: object-pimpl.cxx object-pimpl.hxx position.hxx
+object-simpl.obj: object-simpl.cxx object-simpl.hxx position.hxx
+
+position.cxx position.hxx \
+position-pskel.cxx position-pskel.hxx position-pimpl.cxx position-pimpl.hxx \
+position-sskel.cxx position-sskel.hxx position-simpl.cxx position-simpl.hxx \
+: position.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--custom-parser object=/object-pimpl.hxx \
+--custom-serializer object=/object-simpl.hxx position.xsd
+
+# Test.
+#
+test: driver.exe position.xml
+ .\driver.exe position.xml
+
+# Clean.
+#
+clean:
+ -del position-pimpl.?xx position-pskel.?xx position-simpl.?xx \
+position-sskel.?xx position.?xx object-pimpl.obj object-simpl.obj \
+position-pimpl.obj position-pskel.obj position-simpl.obj position-sskel.obj \
+position.obj driver.obj driver.exe