summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
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