diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-03-30 22:30:35 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-03-30 22:30:35 +0200 |
commit | d8a69e6abeea2034c17d84ef74009b137faa06cc (patch) | |
tree | 7ed3fbd07adc8328aba71cfb26ffc3eb5ff5ebf7 /SConstruct |
Initial commit.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..1e7d2e3 --- /dev/null +++ b/SConstruct @@ -0,0 +1,27 @@ +import os + +env = Environment( + ENV = os.environ, +) + +AddOption('--release', action = 'store_true') +AddOption('--profiling', action = 'store_true') + +env.Append(CPPPATH = ['.']) +env.Append(LIBS = ['GL', 'GLU']) +env.ParseConfig('sdl-config --cflags --libs') +env.ParseConfig('pkg-config --cflags --libs SDL_image') +env.ParseConfig('pkg-config --cflags --libs ftgl') + +if not GetOption('release'): + env.Append(CPPFLAGS = ['-Wall', '-g']) + +if GetOption('profiling'): + env.Append(CPPFLAGS = ['-pg']) + env.Append(LINKFLAGS = ['-pg']) + +Export('env') + +env.Program('foo', Glob('*.cpp')) + +# vim: syn=python |