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.5 by schorsch, Sat Oct 23 18:55:52 2004 UTC vs.
Revision 1.18 by schorsch, Thu Mar 10 21:43:22 2016 UTC

# Line 1 | Line 1
1 < import os
2 <
3 < Import('env') # inherit from parent
4 <
5 < # math libs
6 < mlib = env['RAD_MLIB']
7 <
8 < # standard targets
9 < PROGS = (
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',],    ['rtfunc','rtcont','rtmem','rtio','rterror']),
18 < ('gencatenary', ['gencat.c',],    []),
19 < ('genworm',     ['genworm.c',],
20 <        ['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']),
21 < ('gensurf',     ['gensurf.c',],
22 <        ['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']),
23 < ('genclock',    ['genclock.c',],  []),
24 < ('genbranch',   ['genbranch.c',], []),
25 < ('replmarks',   ['replmarks.c',],
26 <        ['rtproc','rtpath','rtmath','rtio','rterror']),
27 < ('mkillum',     Split('mkillum.c mkillum2.c mkillum3.c'),
28 <    ['rtproc','rtscene','rtpath','rtmath','rtio','rtcont','rterror']),
29 < ('xform',       ['xform.c',],
30 <    ['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']),
31 < )
32 < progs = []
33 < for p in PROGS:
34 <    prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
35 <            source=p[1], LIBS=p[2] + mlib)
36 <    progs.append(prog)
37 <
38 < if os.name == 'posix':
39 <        Default(env.InstallCsh(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
40 <
41 < Default('#src/gen')
42 < env.Install('$RAD_BINDIR', progs)
43 <
44 < #surf.cal clockface.hex
45 < LIBFILES = Split('illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal')
46 < env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
47 <
48 <
1 > import os
2 >
3 > Import('env') # inherit from parent
4 >
5 > # math libs
6 > mlib = env['RAD_MLIB']
7 >
8 > #Make sure sun.c is compiled only once
9 > sun = env.Object(source="sun.c")
10 >
11 > # standard targets
12 > PROGS = (
13 > # name          sources           libs
14 > ('gendaylit',   Split('gendaylit.c',)+[sun], ['rtrad']),
15 > ('gendaymtx',   Split('gendaymtx.c',)+[sun], ['rtrad',mlib]),
16 > ('genbeads',    Split('genbeads.c hermite3.c'),  []),
17 > ('genbox',      ['genbox.c',],    []),
18 > ('genmarble',   ['genmarble.c',], []),
19 > ('gensky',      Split('gensky.c',)+[sun], []),
20 > ('genblinds',   ['genblinds.c',], []),
21 > ('genprism',    ['genprism.c',],  []),
22 > ('genrev',      ['genrev.c',],    ['rtrad',]),
23 > ('gencatenary', ['gencat.c',],    []),
24 > ('genworm',     ['genworm.c',],   ['rtrad']),
25 > ('gensurf',     ['gensurf.c',],   ['rtrad']),
26 > ('genclock',    ['genclock.c',],  []),
27 > ('genbranch',   ['genbranch.c',], []),
28 > ('replmarks',   ['replmarks.c',], ['rtrad']),
29 > ('xform',       ['xform.c',],     ['rtrad']),
30 > )
31 > progs = []
32 > for p in PROGS:
33 >    prog = env.Program(target=os.path.join('$RAD_BUILDBIN', p[0]),
34 >            source=p[1], LIBS=p[2] + mlib)
35 >    progs.append(prog)
36 >
37 > prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mkillum'),
38 >                source=Split('mkillum.c mkillum2.c mkillum3.c'),
39 >                CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
40 >                LIBS=['raycalls','rttrace','rtrad'] + mlib)
41 > progs.append(prog)
42 > prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mksource'),
43 >                source=['mksource.c'],
44 >                CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
45 >                LIBS=['raycalls','rttrace','rtrad'] + mlib)
46 > progs.append(prog)
47 >
48 > if os.name == 'posix':
49 >        Default(env.InstallScript(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
50 >
51 > Default('#src/gen')
52 > env.Install('$RAD_BINDIR', progs)
53 >
54 > #surf.cal clockface.hex
55 > LIBFILES = Split('''illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal
56 >                perezlum.cal''')
57 > env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
58 >
59 > # vim: set syntax=python:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines