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

env = Environment(CPPPATH = ['.'], CCFLAGS = ['-pthread'], LINKFLAGS = ['-pthread'])

conf = Configure(env)
conf.CheckLib('boost_system')
conf.CheckLib('boost_filesystem')
conf.CheckLib('boost_regex')
env = conf.Finish()

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

env.ParseConfig('pkg-config --cflags --libs libmpg123')

env.Program('audistd', Glob('*.cpp') + Glob('decoders/*.cpp'))

# vim: syn=python