-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSConstruct
More file actions
32 lines (25 loc) · 788 Bytes
/
SConstruct
File metadata and controls
32 lines (25 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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')