diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-16 00:51:20 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-16 00:51:20 +0200 |
commit | b4cbca161a1638e96d9e0a6fe12a29ed43173e43 (patch) | |
tree | 296cc7512f6e4baf1e357cedd628356bc2cf5aa5 /SConstruct |
Committed some work.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 17 |
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 |