From 8838165554a818882d0412a2b0ae8611e0b34b0f Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 1 Nov 2010 13:22:30 +0100 Subject: Added SConstruct files. --- server/SConstruct | 21 +++++++++++++++++++++ server/main.cpp | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 server/SConstruct 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 diff --git a/server/main.cpp b/server/main.cpp index e69de29..443bd82 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -0,0 +1,5 @@ + + +int main() { + +} -- cgit v1.2.3