summaryrefslogtreecommitdiff
path: root/server/SConstruct
blob: 67bb36a82f412e319c1d07d24bd9b202189478d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os

env = Environment(
	ENV = os.environ,
)

AddOption('--release', action = 'store_true')
AddOption('--profiling', action = 'store_true')

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', 'boost_serialization', 'pthread'])

if not GetOption('release'):
	env.Append(CPPFLAGS = ['-Wall', '-g', '-D DEBUG'])

if GetOption('profiling'):
	env.Append(CPPFLAGS = ['-pg'])
	env.Append(LINKFLAGS = ['-pg'])

Export('env')

env.Program('aotenjoud', Glob('*.cpp') + Glob('../common/*.cpp'))

# vim: syn=python