AddOption('--release', action = 'store_true') env = Environment(CPPPATH = ['.'], CCFLAGS = ['-pthread'], LINKFLAGS = ['-pthread']) if env['PLATFORM'] == 'darwin': env.Append(LIBS = ['boost_system', 'boost_filesystem', 'boost_regex', 'boost_thread', 'mp3lame']) else: conf = Configure(env) print conf.CheckLib('boost_system-mt') print conf.CheckLib('boost_filesystem-mt') print conf.CheckLib('boost_regex-mt') print conf.CheckLib('boost_thread-mt') print conf.CheckLib('mp3lame') 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') + Glob('encoders/*.cpp')) # vim: syn=python