summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-17 15:43:26 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-17 15:43:26 +0200
commitcc150354fd91c05ef863137cdf53eb5a413d76b1 (patch)
tree6ec3a18316234982183b1c0bff389398697c8d41 /SConstruct
parent3abc1401a11d07c6a8e632098a6682630f4a1ea9 (diff)
Added --release flag to compile without debugging info.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7adadb0..7cc4dc2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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