summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-16 21:44:32 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-16 21:44:32 +0200
commita524cfdd2756ac945040ca9bed576fb2f68f8c9f (patch)
tree000874591e87ae5ce7f162214337b49bc1ba0e0b /SConstruct
Imported project.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct22
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