From fae209a9e93400c3a2072befda9c820634cf9278 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 25 Dec 2010 12:54:59 +0100 Subject: Restructured repository. --- SConstruct | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 SConstruct (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..7b883e0 --- /dev/null +++ b/SConstruct @@ -0,0 +1,32 @@ +import os + +env = Environment( + ENV = os.environ, +) + +AddOption('--release', action = 'store_true') +AddOption('--profiling', action = 'store_true') + +if env['PLATFORM'] == 'win32': + env.Append(CPPFLAGS = ['-D _WIN32_WINNT']) + env.Append(LINKFLAGS = ['-Wl,--enable-auto-import']) + env.Append(LIBS = ['libboost_system-mgw44-mt-1_44.a', 'wsock32', 'ws2_32']) +else: + env.Append(LIBS = ['boost_system', 'boost_serialization', 'pthread']) + +if not GetOption('release'): + env.Append(CPPFLAGS = ['-Wall', '-g', '-D DEBUG']) + +if GetOption('profiling'): + env.Append(CPPFLAGS = ['-pg']) + env.Append(LINKFLAGS = ['-pg']) + +Export('env') + +env.Program('aotenjoud', Glob('src/*.cpp') + Glob('common/*.cpp')) + +env.SConscript('tests/SConscript') + +Default('aotenjoud') + +# vim: syn=python -- cgit v1.2.3