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.15 by schorsch, Sat Mar 5 00:29:28 2016 UTC vs.
Revision 1.19 by schorsch, Mon Jan 8 13:38:37 2018 UTC

# Line 1 | Line 1
1 + from __future__ import division, print_function, unicode_literals
2 +
3   import os
4  
5   Import('env') # inherit from parent
# Line 11 | Line 13 | sun = env.Object(source="sun.c")
13   # standard targets
14   PROGS = (
15   # name          sources           libs
16 < ('gendaylit',   Split('gendaylit.c',)+[sun], ['rtlamps']),
16 > ('gendaylit',   Split('gendaylit.c',)+[sun], ['rtrad']),
17 > ('gendaymtx',   Split('gendaymtx.c',)+[sun], ['rtrad',mlib]),
18   ('genbeads',    Split('genbeads.c hermite3.c'),  []),
19   ('genbox',      ['genbox.c',],    []),
20   ('genmarble',   ['genmarble.c',], []),
21   ('gensky',      Split('gensky.c',)+[sun], []),
22   ('genblinds',   ['genblinds.c',], []),
23   ('genprism',    ['genprism.c',],  []),
24 < ('genrev',      ['genrev.c',],    ['rtfunc','rtcont','rtmem','rtio','rterror']),
24 > ('genrev',      ['genrev.c',],    ['rtrad',]),
25   ('gencatenary', ['gencat.c',],    []),
26 < ('genworm',     ['genworm.c',],
27 <        ['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']),
25 < ('gensurf',     ['gensurf.c',],
26 <        ['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']),
26 > ('genworm',     ['genworm.c',],   ['rtrad']),
27 > ('gensurf',     ['gensurf.c',],   ['rtrad']),
28   ('genclock',    ['genclock.c',],  []),
29   ('genbranch',   ['genbranch.c',], []),
30 < ('replmarks',   ['replmarks.c',],
31 <        ['rtproc','rtpath','rtmath','rtio','rterror']),
31 < #('mkillum',     Split('mkillum.c mkillum2.c mkillum3.c'),
32 < #    ['rtproc','rtscene','rtpath','rtmath','rtio','rtcont','rterror']),
33 < #('mksource',    ['mksource.c'],
34 < #       ['rtio','rtmath','rterror']),
35 < ('xform',       ['xform.c',],
36 <    ['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']),
30 > ('replmarks',   ['replmarks.c',], ['rtrad']),
31 > ('xform',       ['xform.c',],     ['rtrad']),
32   )
33   progs = []
34   for p in PROGS:
# Line 44 | Line 39 | for p in PROGS:
39   prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mkillum'),
40                  source=Split('mkillum.c mkillum2.c mkillum3.c'),
41                  CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
42 <                LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtproc',
48 <                'rtnet','rtpath','rtmath','rtargs','rtio','rtcont','rtmem','rterror']
49 <                + mlib)
42 >                LIBS=['raycalls','rttrace','rtrad'] + mlib)
43   progs.append(prog)
44   prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mksource'),
45                  source=['mksource.c'],
46                  CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
47 <                LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtproc','rtnet',
55 <                'rtmath','rtcont','rtmem','rtargs','rtio','rtpath','rterror'] + mlib)
47 >                LIBS=['raycalls','rttrace','rtrad'] + mlib)
48   progs.append(prog)
49  
50   if os.name == 'posix':
51 <        Default(env.InstallScript(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
51 >        Default(env.InstallScript(os.path.join('$RAD_BUILDBIN', 'glaze.csh'),
52 >                                'glaze.csh'))
53 >        Default(env.InstallScript(os.path.join('$RAD_BUILDBIN', 'glaze'),
54 >                                'glaze.py'))
55 > else:
56 >        Default(env.InstallScript(os.path.join('$RAD_BUILDBIN', 'glaze.py'),
57 >                                'glaze.py'))
58  
59   Default('#src/gen')
60   env.Install('$RAD_BINDIR', progs)
61  
62   #surf.cal clockface.hex
63 < LIBFILES = Split('illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal perezlum.cal coeff_perez.dat defangle.dat')
63 > LIBFILES = Split('''illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal
64 >                perezlum.cal''')
65   env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
66  
67 <
67 > # vim: set syntax=python:
68 > # vi: set ts=4 sw=4 :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines