summaryrefslogtreecommitdiff
path: root/SConstruct
blob: e880366607aba17d641a51dc2d6b819ac2fe46fd (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(CPPPATH = ['.'])

conf = Configure(env)
conf.CheckLib('mp3lame')
env = conf.Finish()

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.ParseConfig('pkg-config --cflags --libs libmpg123')

env.Program('foo', Glob('*.c') + Glob('decoders/*.c') + Glob('encoders/*.c'))

# vim: syn=python