summaryrefslogtreecommitdiff
path: root/SConstruct
blob: ce1b81876aa3cd901139385237fc2fa7c601a743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AddOption('--release', action = 'store_true')

env = Environment()

conf = Configure(env)
for lib in ('GL', 'GLU', 'SDL', 'SDL_image'):
	if not conf.CheckLib(lib):
		print 'Could not find %s' % lib
		Exit(1)
env = conf.Finish()

if GetOption('release'):
	env.Append(CCFLAGS = ['-O2'])
else:
	env.Append(CCFLAGS = ['-Wall', '-g'])

env.ParseConfig('sdl-config --cflags --libs')
env.ParseConfig('pkg-config --cflags --libs ftgl')

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

# vim: syn=python