summaryrefslogtreecommitdiff
path: root/SConstruct
blob: 962ac2940d8193aef6c17ea93b2656e5f7233a87 (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
29
30
31
import os

env = Environment(
	ENV = os.environ,
)

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

env.Append(CPPPATH = ['.'])
env.Append(LIBS = ['GL', 'GLU', 'noise', 'boost_filesystem', 'tolua++', 'lua'])
env.ParseConfig('sdl-config --cflags --libs')
env.ParseConfig('pkg-config --cflags --libs SDL_image')
env.ParseConfig('pkg-config --cflags --libs ftgl')
env.ParseConfig('pkg-config --cflags --libs CEGUI')
env.ParseConfig('pkg-config --cflags --libs CEGUI-OPENGL')

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

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

Export('env')

env.SConscript('scripting/SConscript')

env.Program('foo', Glob('*.cpp') + ['noiseutils/noiseutils.cpp'] + Glob('widgets/*.cpp') + Glob('scripting/*.cpp'))

# vim: syn=python