-
Notifications
You must be signed in to change notification settings - Fork 3
/
SConstruct
40 lines (30 loc) · 1.25 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
39
40
import os
env = Environment(ENV = os.environ)
env.SConscriptChdir(0)
env.SConscript('SConstruct-config',
exports = ['env'])
fkernelPath = env.SConscript(dirs = ['tools/loader'],
exports = ['env'],
variant_dir = 'build/loader-$TSYS', duplicate = 0)
env_bootdict = env.Clone()
env_bootdict['ARCH'] = 'x86'
bootdict = env.SConscript(dirs = ['bootdict'],
exports = ['env_bootdict'],
variant_dir = 'build/bootdict', duplicate = 0)
if 'winconst' in BUILD_TARGETS:
env.SConscript(dirs = ['tools/winconst-extract'],
exports = ['env'],
variant_dir = 'build/winconst-extract', duplicate = 1)
if 'linconst' in BUILD_TARGETS:
env.SConscript(dirs = ['tools/linconst-extract'],
exports = ['env'],
variant_dir = 'build/linconst-extract', duplicate = 1)
productdict = env.SConscript(dirs = ['product/ikforth-dev-x86'],
exports = ['env', 'fkernelPath', 'bootdict'],
variant_dir = 'build/ikforth-dev-$TSYS-$TERMINIT', duplicate = 1)
env.SConscript('SConscript',
exports = ['env', 'fkernelPath', 'productdict'])
env.SConscript(dirs = ['product/ikforth-dist'],
exports = ['env'],
variant_dir = 'build/ikforth-dist', duplicate = 0)
env.Default('all')