-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
36 lines (31 loc) · 798 Bytes
/
SConstruct
File metadata and controls
36 lines (31 loc) · 798 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
33
34
35
36
EnsurePythonVersion(2,7)
import os
PROJ_NAME = 'cpplatex'
PROJ_SRC = 'src'
AddOption('--out',
nargs=1,
dest='outdir',
action='store',
default='bin',
help='directory to use as the variant directory'
)
AddOption('--clang',
action='store_true',
help='use the clang/LLVM toolset rather than the GCC',
)
AddOption('--ugly',
action='store_true',
help='print the entire file-compilation string rather than pretty-printing'
)
AddOption('--cov',
action='store_true',
help='generate a gcov coverage report'
)
AddOption('--travis',
action='store_true',
help='change compilers for travis'
)
env = Environment()
variant_dir = os.path.abspath(GetOption('outdir'))
SConscript('SConscript', variant_dir=variant_dir, duplicate=False)
Clean('.', variant_dir)