diff options
-rw-r--r-- | SConstruct | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -6,6 +6,8 @@ env = Environment( common_sources = [] +AddOption('--release', action = 'store_true') + if env['PLATFORM'] == 'darwin': env.Append(CPPFLAGS = '') env.Append(LINKFLAGS = '') @@ -19,6 +21,9 @@ else: env.ParseConfig('sdl-config --cflags --libs') env.ParseConfig('pkg-config --cflags --libs ftgl') +if not GetOption('release'): + env.Append(CPPFLAGS = ['-Wall', '-g']) + env.Program('foo', common_sources + Glob('*.cpp')) # vim: syn=python |