summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'])