aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SConstruct19
1 files changed, 19 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 11deb6bd..93a79d16 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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')