diff options
author | Vincent Richard <[email protected]> | 2013-05-13 10:01:54 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-05-13 10:01:54 +0000 |
commit | 38ced8cb4b253cfbb0384fd919ba4fea122285ed (patch) | |
tree | 4a1f06a81069e613edc4df1ebaf9ec5900ae71b8 | |
parent | Merge branch 'master' of https://github.com/kisli/vmime (diff) | |
download | vmime-38ced8cb4b253cfbb0384fd919ba4fea122285ed.tar.gz vmime-38ced8cb4b253cfbb0384fd919ba4fea122285ed.zip |
Fixed SCons build for export header.
-rw-r--r-- | SConstruct | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -620,6 +620,8 @@ env.Append(CPPPATH = [ '.' ]) env.Append(CPPDEFINES = ['_REENTRANT=1']) +env.Append(CPPDEFINES = ['VMIME_STATIC']) + env.Append(CXXFLAGS = ['-W']) env.Append(CXXFLAGS = ['-Wall']) env.Append(CXXFLAGS = ['-ansi']) @@ -782,6 +784,20 @@ if IsProtocolSupported(messaging_protocols, 'sendmail'): print "" +################################ +# Generate export-static.hpp # +################################ + +export_hpp = open('vmime/export-static.hpp', 'w') + +export_hpp.write(""" +#define VMIME_EXPORT +#define VMIME_NO_EXPORT +""") + +export_hpp.close() + + ######################### # Generate config.hpp # ######################### @@ -797,6 +813,9 @@ config_hpp.write(""" #define VMIME_CONFIG_HPP_INCLUDED +#include "vmime/export.hpp" + + """) config_hpp.write('// Name of package\n') |