diff options
| author | Vincent Richard <[email protected]> | 2013-03-25 12:32:48 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-03-25 12:32:48 +0100 |
| commit | 9d2703c376d2ee7501ed78be8c962203fbfd098f (patch) | |
| tree | 5a5ae827813bb0e63105c0db90b2d5ec60ae9a2e /SConstruct | |
| parent | Pkg-config file changed back to "vmime.pc" (fixed issue #35). (diff) | |
| download | vmime-9d2703c376d2ee7501ed78be8c962203fbfd098f.tar.gz vmime-9d2703c376d2ee7501ed78be8c962203fbfd098f.zip | |
Added support for charset conversion with ICU (thanks to Mehmet Bozkurt).
Diffstat (limited to 'SConstruct')
| -rw-r--r-- | SConstruct | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -57,6 +57,7 @@ libvmime_sources = [ 'charset.cpp', 'charset.hpp', 'charsetConverter.cpp', 'charsetConverter.hpp', 'charsetConverter_iconv.cpp', 'charsetConverter_iconv.hpp', + 'charsetConverter_icu.cpp', 'charsetConverter_icu.hpp', 'charsetConverter_idna.cpp', 'charsetConverter_idna.hpp', 'charsetConverterOptions.cpp', 'charsetConverterOptions.hpp', 'component.cpp', 'component.hpp', @@ -673,6 +674,15 @@ if env['with_tls'] == 'yes': env.Append(CXXFLAGS = ['-pthread']) +# Charset conversion library + +# -- iconv +if sys.platform == "mac" or sys.platform == "darwin": + env.Append(LIBS = ['iconv', 'gcrypt']) + +# -- ICU +env.Append(LIBS = ['icuuc', 'icudata', 'icui18n']) + # Generate help text for command line options Help(opts.GenerateHelpText(env)) @@ -836,6 +846,11 @@ config_hpp.write('\n') config_hpp.write('#define VMIME_HAVE_SIZE_T 1\n') config_hpp.write('\n') +config_hpp.write('// Charset conversion support\n') +config_hpp.write('#define VMIME_CHARSETCONV_LIB_IS_ICONV 1\n') +config_hpp.write('#define VMIME_CHARSETCONV_LIB_IS_ICU 0\n') +config_hpp.write('\n') + config_hpp.write('// Options\n') config_hpp.write('// -- File-system support\n') |
