Fixed SCons build for export header.

This commit is contained in:
Vincent Richard 2013-05-13 12:01:54 +02:00
parent 8bbfc2af21
commit 38ced8cb4b

View File

@ -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')