summaryrefslogtreecommitdiff
path: root/SConstruct
blob: 07e2a0413619f07bb405c3e1082138f31f96aa44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.Program('audistd', Glob('*.cpp'))

# vim: syn=python