aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-03-25 12:32:48 +0100
committerVincent Richard <[email protected]>2013-03-25 12:32:48 +0100
commit9d2703c376d2ee7501ed78be8c962203fbfd098f (patch)
tree5a5ae827813bb0e63105c0db90b2d5ec60ae9a2e /SConstruct
parentPkg-config file changed back to "vmime.pc" (fixed issue #35). (diff)
downloadvmime-9d2703c376d2ee7501ed78be8c962203fbfd098f.tar.gz
vmime-9d2703c376d2ee7501ed78be8c962203fbfd098f.zip
Added support for charset conversion with ICU (thanks to Mehmet Bozkurt).
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct15
1 files changed, 15 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 60ee5159..eed044f7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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')