You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
788 B
32 lines
788 B
#!/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') |