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

env = Environment(CPPPATH = ['.'])

env.Append(CCFLAGS = ['-std=c99'])

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

env.ParseConfig('pkg-config --cflags --libs glib-2.0')
env.ParseConfig('pkg-config --cflags --libs gio-2.0')

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

# vim: syn=python