diff options
author | Atle Hellvik Havsø <atle@havso.net> | 2010-11-08 11:28:53 +0100 |
---|---|---|
committer | Atle Hellvik Havsø <atle@havso.net> | 2010-11-08 11:28:53 +0100 |
commit | bbed785b301bd9380080489ad7b2f10f777b496d (patch) | |
tree | 678989ef8bb457b330511daa4a23b7b7d776b45d | |
parent | ee5039b815e05f7a133c12f9dfbeb64c077bfc85 (diff) |
Modified SConstruct files for windows targets
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
-rw-r--r-- | server/SConstruct | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/SConstruct b/server/SConstruct index 8f20dcb..bc7a5f1 100644 --- a/server/SConstruct +++ b/server/SConstruct @@ -1,13 +1,18 @@ import os env = Environment( - ENV = os.environ, + ENV = os.environ, ) AddOption('--release', action = 'store_true') AddOption('--profiling', action = 'store_true') -env.Append(LIBS = ['boost_system', 'pthread']) +if env['PLATFORM'] == 'win32': + env.Append(CPPFLAGS = ['-D _WIN32_WINNT']) + env.Append(LINKFLAGS = ['-Wl,--enable-auto-import']) + env.Append(LIBS = ['libboost_system-mgw44-mt-1_44.a', 'wsock32', 'ws2_32']) +else: + env.Append(LIBS = ['boost_system', 'pthread']) if not GetOption('release'): env.Append(CPPFLAGS = ['-Wall', '-g']) |