diff options
Diffstat (limited to 'dist/examples/cxx/serializer/minimal/nmakefile')
-rw-r--r-- | dist/examples/cxx/serializer/minimal/nmakefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dist/examples/cxx/serializer/minimal/nmakefile b/dist/examples/cxx/serializer/minimal/nmakefile new file mode 100644 index 0000000..d85fade --- /dev/null +++ b/dist/examples/cxx/serializer/minimal/nmakefile @@ -0,0 +1,55 @@ +root = ..\..\..\.. + +!include $(root)\build\cxx\rules.nmake + +# Build. +# +EXTRA_CPPFLAGS = /I$(root)\libxsde + +EXTRA_XSDFLAGS = --no-stl --no-exceptions + +!if "$(XSDE_IOSTREAM)" == "n" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-iostream +!endif + +!if "$(XSDE_LONGLONG)" == "n" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long +!endif + +!if "$(XSDE_SERIALIZER_VALIDATION)" == "n" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-validation +!endif + +!if "$(XSDE_REUSE_STYLE)" == "mixin" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin +!endif + +!if "$(XSDE_POLYMORPHIC)" == "y" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic +!endif + +!if "$(XSDE_REUSE_STYLE)" == "mixin" +impl = people-simpl-mixin +!else +impl = people-simpl-tiein +!endif + +driver.exe: driver.obj people-sskel.obj $(root)\libxsde\xsde\xsde.lib + +driver.obj: driver.cxx $(impl).hxx people-sskel.hxx people.hxx +people-sskel.obj: people-sskel.cxx people-sskel.hxx people.hxx + +people-sskel.cxx people-sskel.hxx: people.xsd people.map + $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ +--type-map people.map people.xsd + +# Test. +# +test: driver.exe + .\driver.exe + + +# Clean. +# +clean: + -del people-sskel.?xx people-sskel.obj driver.obj driver.exe |