forked from joehillen/holework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
24 lines (20 loc) · 827 Bytes
/
SConstruct
File metadata and controls
24 lines (20 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Top-level scons build file; sets up environment and runs target build script
#
# TODO: we really should have some way of saying "g++4.5 or higher". For that
# matter, Microsoft's C++ compiler should work too, with appropriate flags.
cxx = 'g++-4.5'
flags = '-std=c++0x -Wall -Wno-unused-function -O0 -fno-inline -ggdb'
paths = '.'
# Set up environment
import os
env = Environment(ENV = {'PATH' : os.environ['PATH'],
'TERM' : os.environ['TERM'],
'HOME' : os.environ['HOME'],
'GTEST_COLOR' : 'yes'})
env.Replace(CXX = cxx)
env.Append(CPPFLAGS = flags)
env.Replace(CPPPATH = paths)
# Export environment and run script to compile everything into the build/ dir
Export('env')
env.SConscript('src/SConscript', variant_dir='build', duplicate=False)