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

env = Environment(
        ENV = os.environ,
)

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

env.Append(LIBS = ['boost_system', 'pthread'])

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

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

Export('env')

env.Program('aotenjoud', Glob('*.cpp'))

# vim: syn=python