summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-16 00:51:20 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-16 00:51:20 +0200
commitb4cbca161a1638e96d9e0a6fe12a29ed43173e43 (patch)
tree296cc7512f6e4baf1e357cedd628356bc2cf5aa5 /SConstruct
Committed some work.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct17
1 files changed, 17 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
new file mode 100644
index 0000000..bf87dfe
--- /dev/null
+++ b/SConstruct
@@ -0,0 +1,17 @@
+AddOption('--release', action = 'store_true')
+
+env = Environment(CPPPATH = ['.'])
+
+env.Append(CCFLAGS = ['-std=c99'])
+
+if GetOption('release'):
+ env.Append(CCFLAGS = ['-O2'])
+else:
+ env.Append(CCFLAGS = ['-Wall', '-g'])
+
+env.ParseConfig('pkg-config --cflags --libs glib-2.0')
+env.ParseConfig('pkg-config --cflags --libs gio-2.0')
+
+env.Program('foo', Glob('*.c'))
+
+# vim: syn=python