Fixed SCons build for export header.
This commit is contained in:
parent
8bbfc2af21
commit
38ced8cb4b
19
SConstruct
19
SConstruct
@ -620,6 +620,8 @@ env.Append(CPPPATH = [ '.' ])
|
|||||||
|
|
||||||
env.Append(CPPDEFINES = ['_REENTRANT=1'])
|
env.Append(CPPDEFINES = ['_REENTRANT=1'])
|
||||||
|
|
||||||
|
env.Append(CPPDEFINES = ['VMIME_STATIC'])
|
||||||
|
|
||||||
env.Append(CXXFLAGS = ['-W'])
|
env.Append(CXXFLAGS = ['-W'])
|
||||||
env.Append(CXXFLAGS = ['-Wall'])
|
env.Append(CXXFLAGS = ['-Wall'])
|
||||||
env.Append(CXXFLAGS = ['-ansi'])
|
env.Append(CXXFLAGS = ['-ansi'])
|
||||||
@ -782,6 +784,20 @@ if IsProtocolSupported(messaging_protocols, 'sendmail'):
|
|||||||
print ""
|
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 #
|
# Generate config.hpp #
|
||||||
#########################
|
#########################
|
||||||
@ -797,6 +813,9 @@ config_hpp.write("""
|
|||||||
#define VMIME_CONFIG_HPP_INCLUDED
|
#define VMIME_CONFIG_HPP_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
#include "vmime/export.hpp"
|
||||||
|
|
||||||
|
|
||||||
""")
|
""")
|
||||||
|
|
||||||
config_hpp.write('// Name of package\n')
|
config_hpp.write('// Name of package\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user