summaryrefslogtreecommitdiff
path: root/server/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-01 13:22:30 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-01 13:22:30 +0100
commit8838165554a818882d0412a2b0ae8611e0b34b0f (patch)
treeca129863f0ae5acc69a273b4a6897a35bc2853ed /server/SConstruct
parentb38662cd0510aaf3fba0fccafe660ffc46578ac7 (diff)
Added SConstruct files.
Diffstat (limited to 'server/SConstruct')
-rw-r--r--server/SConstruct21
1 files changed, 21 insertions, 0 deletions
diff --git a/server/SConstruct b/server/SConstruct
new file mode 100644
index 0000000..b8329cd
--- /dev/null
+++ b/server/SConstruct
@@ -0,0 +1,21 @@
+import os
+
+env = Environment(
+ ENV = os.environ,
+)
+
+AddOption('--release', action = 'store_true')
+AddOption('--profiling', action = 'store_true')
+
+if not GetOption('release'):
+ env.Append(CPPFLAGS = ['-Wall', '-g'])
+
+if GetOption('profiling'):
+ env.Append(CPPFLAGS = ['-pg'])
+ env.Append(LINKFLAGS = ['-pg'])
+
+Export('env')
+
+env.Program('aotenjoud', Glob('*.cpp'))
+
+# vim: syn=python