From bbed785b301bd9380080489ad7b2f10f777b496d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=F8?= Date: Mon, 8 Nov 2010 11:28:53 +0100 Subject: Modified SConstruct files for windows targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Atle Hellvik Havsø --- server/SConstruct | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'server/SConstruct') 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']) -- cgit v1.2.3