blob: 44efee82beaf0ddf01d1467ab1f90453e10268b7 (
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
|
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 gio-unix-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
|