summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-27 01:14:27 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-27 01:14:27 +0100
commit9e411c8fe5f3a7b507bca0c4e132454d7d57650c (patch)
tree197f94ed3af663ef0397c065479071c9d3a439d6 /SConstruct
Initial commit.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 16 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
new file mode 100644
index 0000000..325abe5
--- /dev/null
+++ b/SConstruct
@@ -0,0 +1,16 @@
+AddOption('--release', action = 'store_true')
+
+env = Environment(CPPPATH = ['.'], CCFLAGS = ['-pthread'], LINKFLAGS = ['-pthread'])
+
+conf = Configure(env)
+conf.CheckLib('boost_system')
+env = conf.Finish()
+
+if GetOption('release'):
+ env.Append(CCFLAGS = ['-O2'])
+else:
+ env.Append(CCFLAGS = ['-Wall', '-g'])
+
+env.Program('audistd', Glob('*.cpp'))
+
+# vim: syn=python