-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
38 lines (30 loc) · 1.06 KB
/
SConstruct
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
37
38
# Include build utility functions:
from tools import *
# We need scons 0.98 or later
EnsureSConsVersion(0, 98)
# Set up build environment:
vars = Variables('config.py', ARGUMENTS)
add_common_variables(vars, 'mdt')
env = MyEnvironment(variables=vars, require_modeller=True,
tools=["default", "swig", "sphinx"],
toolpath=["tools"])
# Version number
env['MDT_VERSION'] = 'SVN'
Help(vars.GenerateHelpText(env))
# Make these objects available to SConscript files:
Export('env', 'get_pyext_environment', 'get_sharedlib_environment')
# Subdirectories to build:
bin = SConscript('bin/SConscript')
Export('bin')
test = SConscript('test/SConscript')
pyso, pyext = SConscript('pyext/SConscript')
src = SConscript('src/SConscript')
data = SConscript('data/SConscript')
Export('pyext', 'pyso')
doc = SConscript('doc/SConscript')
w32 = SConscript('tools/w32/SConscript')
rpm = SConscript('tools/rpm/SConscript')
# bin script first require Python extensions to be built:
env.Depends(bin, [pyext, pyso])
# Build the binaries by default:
env.Default(bin)