ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/SConscript
(Generate patch)

Comparing ray/src/gen/SConscript (file contents):
Revision 1.1 by schorsch, Tue Oct 21 19:27:28 2003 UTC vs.
Revision 1.4 by schorsch, Thu Oct 21 15:47:12 2004 UTC

# Line 7 | Line 7 | mlib = env['RAD_MLIB']
7  
8   # standard targets
9   PROGS = (
10 < # name        sources                  libs
11 < ('genbeads',  Split('genbeads.c hermite3.c'),    mlib),
12 < ('genbox',    Split('genbox.c'),       mlib),
13 < ('genmarble', Split('genmarble.c'),    mlib),
14 < ('gensky',    Split('gensky.c sun.c'), mlib),
15 < ('genblinds', Split('genblinds.c'),    mlib),
16 < ('genprism',  Split('genprism.c'),     mlib),
17 < ('xform',     Split('xform.c'),        ['rt'] + mlib),
18 < ('replmarks', Split('replmarks.c'),    ['rt'] + mlib),
19 < ('mkillum',   Split('mkillum.c mkillum2.c mkillum3.c'), ['rt'] + mlib),
20 < ('genvev',    Split('genrev.c'),       ['rt'] + mlib),
21 < ('gencat',    Split('gencat.c'),       ['rt'] + mlib),
22 < ('genworm',   Split('genworm.c'),      ['rt'] + mlib),
23 < ('gensurf',   Split('gensurf.c'),      ['rt'] + mlib),
24 < ('genclock',  Split('genclock.c'),     mlib),
25 < ('genbranch', Split('genbranch.c'),    mlib),
10 > # name          sources           libs
11 > ('genbeads',    Split('genbeads.c hermite3.c'),  []),
12 > ('genbox',      ['genbox.c',],    []),
13 > ('genmarble',   ['genmarble.c',], []),
14 > ('gensky',      Split('gensky.c sun.c',), []),
15 > ('genblinds',   ['genblinds.c',], []),
16 > ('genprism',    ['genprism.c',],  []),
17 > ('genrev',      ['genrev.c',],    ['rterror','rtfunc','rtcont','rtmem']),
18 > ('gencatenary', ['gencat.c',],    []),
19 > ('genworm',     ['genworm.c',],   ['rtfunc','rtmem','rtcont','rtmath']),
20 > ('gensurf',     ['gensurf.c',],   ['rtfunc','rtmem','rtcont','rtmath','rtio']),
21 > ('genclock',    ['genclock.c',],  []),
22 > ('genbranch',   ['genbranch.c',], []),
23 > ('replmarks',   ['replmarks.c',],
24 >        ['rtproc','rtpath','rtmath','rtio','rterror']),
25 > ('mkillum',     Split('mkillum.c mkillum2.c mkillum3.c'),
26 >    ['rtscene','rtproc','rtpath','rtmath','rtio','rtcont','rterror']),
27 > ('xform',       ['xform.c',],
28 >    ['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']),
29   )
30 + progs = []
31   for p in PROGS:
32      prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
33 <            source=p[1], LIBS=p[2])
34 <    Default(prog)
31 <    env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
33 >            source=p[1], LIBS=p[2] + mlib)
34 >    progs.append(prog)
35  
36 + if os.name == 'posix':
37 +        Default(env.InstallCsh(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
38 +
39 + Default('#src/gen')
40 + env.Install('$RAD_BINDIR', progs)
41 +
42   #surf.cal clockface.hex
43   LIBFILES = Split('illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal')
44 < env.Append(RAD_RLIBINSTALL=env.Install(env['RAD_RLIBDIR'], LIBFILES))
44 > env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
45 >
46 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines