From 38ced8cb4b253cfbb0384fd919ba4fea122285ed Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 13 May 2013 12:01:54 +0200 Subject: [PATCH] Fixed SCons build for export header. --- SConstruct | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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')