diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..ce1b818 --- /dev/null +++ b/SConstruct @@ -0,0 +1,22 @@ +AddOption('--release', action = 'store_true') + +env = Environment() + +conf = Configure(env) +for lib in ('GL', 'GLU', 'SDL', 'SDL_image'): + if not conf.CheckLib(lib): + print 'Could not find %s' % lib + Exit(1) +env = conf.Finish() + +if GetOption('release'): + env.Append(CCFLAGS = ['-O2']) +else: + env.Append(CCFLAGS = ['-Wall', '-g']) + +env.ParseConfig('sdl-config --cflags --libs') +env.ParseConfig('pkg-config --cflags --libs ftgl') + +env.Program('foo', Glob('*.cpp')) + +# vim: syn=python |