From b4cbca161a1638e96d9e0a6fe12a29ed43173e43 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 16 Aug 2010 00:51:20 +0200 Subject: Committed some work. --- SConstruct | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SConstruct (limited to 'SConstruct') 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 -- cgit v1.2.3