-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSConstruct
More file actions
26 lines (20 loc) · 880 Bytes
/
SConstruct
File metadata and controls
26 lines (20 loc) · 880 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
# -*-python-*-
import os
AddOption('--eigen-static-assert',
dest='eigen-static-assert',
type='choice',
choices=['no', 'yes'],
nargs=1,
action='store',
help='installation prefix',
default='yes' if os.environ.get('AutWIG', 'false') == 'true' else 'no')
env = Environment(tools = ['toolchain'])
env['EIGEN_STATIC_ASSERT'] = GetOption('eigen-static-assert')
if env['EIGEN_STATIC_ASSERT'] == 'no':
env.AppendUnique(CPPDEFINES=['EIGEN_NO_STATIC_ASSERT'])
VariantDir(os.path.join('build', 'src'), 'src')
VariantDir(os.path.join('build', 'test'), 'test')
SConscript(os.path.join('build', 'src', 'cpp', 'SConscript'), exports="env")
SConscript(os.path.join('build', 'src', 'py', 'wrapper', 'SConscript'), exports="env")
SConscript(os.path.join('build', 'test', 'SConscript'), exports="env")
Default("install")