summaryrefslogtreecommitdiff
path: root/server/SConstruct
diff options
context:
space:
mode:
authorAtle Hellvik Havsø <atle@havso.net>2010-11-08 11:28:53 +0100
committerAtle Hellvik Havsø <atle@havso.net>2010-11-08 11:28:53 +0100
commitbbed785b301bd9380080489ad7b2f10f777b496d (patch)
tree678989ef8bb457b330511daa4a23b7b7d776b45d /server/SConstruct
parentee5039b815e05f7a133c12f9dfbeb64c077bfc85 (diff)
Modified SConstruct files for windows targets
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
Diffstat (limited to 'server/SConstruct')
-rw-r--r--server/SConstruct9
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'])