diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-01-07 13:50:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-01-07 13:50:11 +0200 |
commit | 76d23e639004517db8f9469d64ac1789f8449365 (patch) | |
tree | dbafc8c4e31a97f74046c98af19d0fe76f360001 /dist/libxsde/xsde/nmakefile | |
parent | c30caae30bc64974eeaa1e81aa2abdc203f5120d (diff) |
Add support for ISO-8859-1 as application encoding
New runtime configuration parameter, XSDE_ENCODING. New option,
--char-encoding. New test, tests/cxx/hybrid/iso8859-1.
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 dd806f7..90fc489 100644 --- a/dist/libxsde/xsde/nmakefile +++ b/dist/libxsde/xsde/nmakefile @@ -13,6 +13,10 @@ src = $(src) c\genx\genx.c c\genx\char-props.c src = $(src) cxx\string.cxx cxx\ro-string.cxx cxx\stack.cxx +!if "$(XSDE_ENCODING)" == "iso8859-1" +src = $(src) cxx\iso8859-1.cxx +!endif + !if "$(XSDE_STL)" == "n" src = $(src) cxx\strdupx.cxx !endif @@ -501,6 +505,20 @@ config.h: !if "$(XSDE_BYTEORDER)" == "b" @echo #define XSDE_BYTEORDER 4321 >>$@ !endif +!if "$(XSDE_ENCODING)" == "utf8" + @echo #define XSDE_ENCODING_UTF8 >>$@ +!else +!if "$(XSDE_ENCODING)" == "" + @echo #define XSDE_ENCODING_UTF8 >>$@ +!else + @echo #undef XSDE_ENCODING_UTF8 >>$@ +!endif +!endif +!if "$(XSDE_ENCODING)" == "iso8859-1" + @echo #define XSDE_ENCODING_ISO8859_1 >>$@ +!else + @echo #undef XSDE_ENCODING_ISO8859_1 >>$@ +!endif !if "$(XSDE_STL)" == "y" @echo #define XSDE_STL >>$@ !endif |