diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-05-11 12:20:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-05-11 12:20:11 +0200 |
commit | 2e501c68a8641a2b3c430b55f13491a9c1c5d0f5 (patch) | |
tree | 49c2748443fe3c1f01108756b647440e0647a11b /dist/libxsde/xsde/nmakefile | |
parent | 161beba6cdb0d91b15ad19fa8b3e51d986203915 (diff) |
Add support for custom allocators
New example: examples/cxx/hybrid/allocator.
Diffstat (limited to 'dist/libxsde/xsde/nmakefile')
-rw-r--r-- | dist/libxsde/xsde/nmakefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dist/libxsde/xsde/nmakefile b/dist/libxsde/xsde/nmakefile index b1fd08b..25625a3 100644 --- a/dist/libxsde/xsde/nmakefile +++ b/dist/libxsde/xsde/nmakefile @@ -11,12 +11,24 @@ EXTRA_CPPFLAGS = /I.. src = c\expat\xmlparse.c c\expat\xmlrole.c c\expat\xmltok.c src = $(src) c\genx\genx.c c\genx\char-props.c +!if "$(XSDE_CUSTOM_ALLOCATOR)" == "y" +!if "$(XSDE_DEFAULT_ALLOCATOR)" == "y" +src = $(src) allocator.c +!endif +!endif + src = $(src) \ cxx\string.cxx \ cxx\string-search.cxx \ cxx\ro-string.cxx \ cxx\stack.cxx +!if "$(XSDE_CUSTOM_ALLOCATOR)" == "y" +!if "$(XSDE_EXCEPTIONS)" == "y" +src = $(src) cxx/allocator.cxx +!endif +!endif + !if "$(XSDE_ENCODING)" == "iso8859-1" src = $(src) cxx\iso8859-1.cxx !endif @@ -565,6 +577,12 @@ config.h: !else @echo #undef XSDE_REUSE_STYLE_NONE >>$@ !endif +!if "$(XSDE_CUSTOM_ALLOCATOR)" == "y" + @echo #define XSDE_CUSTOM_ALLOCATOR >>$@ +!endif +!if "$(XSDE_DEFAULT_ALLOCATOR)" == "y" + @echo #define XSDE_DEFAULT_ALLOCATOR >>$@ +!endif !if "$(XSDE_POLYMORPHIC)" == "y" @echo #define XSDE_POLYMORPHIC >>$@ @echo #define XSDE_PARSER_SMAP_BUCKETS $(XSDE_PARSER_SMAP_BUCKETS)UL >>$@ |