From 39e25a04795525c0b3432317978017f6ae07cac2 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Sun, 30 Oct 2011 19:47:13 +0100 Subject: [PATCH] first scons try --- SConstruct | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 SConstruct diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..a02129b --- /dev/null +++ b/SConstruct @@ -0,0 +1,32 @@ +#!/usr/bin/python + +import os +import cxxtest + +env = Environment( ENV = { + 'PATH' : "/usr/lib/colorgcc/bin:" + os.environ['PATH'], + 'TERM' : os.environ['TERM'], + 'HOME' : os.environ['HOME'], + 'CCACHE_PATH' : "/usr/bin", + 'CXX' : '/usr/lib/colorgcc/bin/g++', + 'CCACHE_LOGFILE' : '/tmp/denes.txt' + #'tools' : ['default', 'cxxtest'] +}) + +env['CXXFLAGS'] = '-Wall -Wextra -pedantic -Wshadow -Weffc++ -std=c++0x -ggdb' +env['CPPPATH'] = 'include' +env['tools'] = ['default', 'cxxtest'] + +#from pprint import pprint +#pprint (vars(env)) + +env.SharedLibrary('cpp_utils', + Glob('src/*.cpp'), + LIBS = ['pthread', 'rt'] ) + +#env.Program('test/test', + #'test/generated_main.cpp', + #LIBS = ['cpp_utils'], + #LIBPATH = '.') + +env.CxxTest('target') \ No newline at end of file