blob: f85f2a31b93cd6c6501bf730a7914312d7b4095f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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.ParseConfig('pkg-config --cflags --libs id3tag')
env.Program('foo', Glob('*.c') + Glob('decoders/*.c') + Glob('encoders/*.c'))
# vim: syn=python
|