-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSConstruct
More file actions
29 lines (24 loc) · 764 Bytes
/
SConstruct
File metadata and controls
29 lines (24 loc) · 764 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
#!/usr/bin/scons
debug = ARGUMENTS.get('debug', 0)
unittest = ARGUMENTS.get('unittest', 1)
dbase = '/usr/src/d'
dmd = dbase + '/dmd/src/dmd'
dmd_flags = '-I'+dbase+'/druntime/import'
dmd_flags = dmd_flags + ' -I'+dbase+'/druntime/src'
dmd_flags = dmd_flags + ' -L-L'+dbase+'/druntime/lib'
dmd_flags = dmd_flags + ' -I'+dbase+'/phobos/'
dmd_flags = dmd_flags + ' -L-L'+dbase+'/phobos/generated/linux/release/32'
dflags = '-I'+dbase+'/druntime/src'
dflags = dflags + ' -L'+dbase+'/druntime/lib'
if debug:
dflags = dflags + ' -g3'
if unittest:
dflags = dflags + ' -funittest'
dmd_flags = dmd_flags + ' -unittest'
env = Environment(
DMD=dmd,
DMD_FLAGS=dmd_flags
)
env.Command('newAATest', ['newAA.d', 'newAATest.d'],
"$DMD $DMD_FLAGS $SOURCES -of$TARGET"
)