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

Comparing ray/src/util/SConscript (file contents):
Revision 1.9 by schorsch, Fri Nov 5 22:15:44 2004 UTC vs.
Revision 1.19 by schorsch, Sat Mar 5 00:29:28 2016 UTC

# Line 9 | Line 9 | progs = []
9   def radbin(name): return os.path.join('$RAD_BUILDBIN', name)
10   def radlib(name): return os.path.join('$RAD_BUILDLIB', name)
11  
12 < setscan = env.Object(source='setscan.c')
13 < Version = env.Object(source='../rt/Version.c') # XXX ../rt/not_nice
12 > Version = env.Object(source='#src/rt/Version.c')
13  
14   # standard targets
15   PROGS = [
16 < ('findglare', Split('findglare.c glareval.c glaresrc.c')+[setscan],
16 > ('findglare', Split('findglare.c glareval.c glaresrc.c setscan.c'),
17          ['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem','rterror']),
18 < #('contour',   Split('contour.c'),  ['rtmath']), # XXX what is this?
19 < ('glarendx',  Split('glarendx.c'), ['rtpic','rtio','rtargs','rtmath']),
20 < ('vwright',   Split('vwright.c'),  ['rtpic','rtio','rtargs','rtmath']),
22 < ('vwrays',    Split('vwrays.c'),   ['rtpic','rtio','rtargs','rtmath']),
18 > ('glarendx',  Split('glarendx.c'), ['rtpic','rtargs','rtio','rtmath']),
19 > ('vwright',   Split('vwright.c'),  ['rtpic','rtargs','rtio','rtmath']),
20 > ('vwrays',    Split('vwrays.c'),   ['rtpic','rtargs','rtio','rtmath']),
21   ('rad',       Split('rad.c'),
22 <        ['rtpic','rtproc','rtpath','rtio','rtmath','rtargs','rtcont','rtmem','rterror']),
22 >        ['rtpic','rtproc','rtpath','rtmath','rtargs','rtio','rtcont','rtmem','rterror']),
23   ('rpiece',    Split('rpiece.c') + [Version],
24          ['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem']),
25 + ('ranimate',  ['ranimate.c', '$RAD_NETCOMPAT'],
26 +        ['rtpic','rtargs','rtio','rtproc','rtcont','rtmem','rtpath','rtmath',
27 +        'rtnet','rterror','$RAD_SOCKETLIB']),
28 + ('dctimestep', Split('dctimestep.c cmbsdf.c cmatrix.c'),
29 +        ['rtall'])
30   ]
28 if os.name == 'nt': # XXX should be set in a *.cfg file
29        netproc = 'win_netproc.c'
30        netlib = ['ws2_32']
31 else:
32        netproc = 'netproc.c'
33        netlib = []
31  
35 PROGS.append(('ranimate',  ['ranimate.c', netproc],
36        ['rtpic','rtargs','rtio','rtcont','rtmem','rtpath','rtmath','rtnet','rterror'] + netlib))
32   for p in PROGS:
33          prog = env.Program(target=radbin(p[0]), source=p[1], LIBS=p[2]+mlib)
34          progs.append(prog)
35  
36 < if os.name != 'nt': # XXX pending Windows version of raypcalls.c
36 > #if os.name != 'nt': # XXX pending Windows version of raypcalls.c
37 > if True: # experimental raypwin.c
38          # targets with different includes/libs
39          rs = Split('ranimove.c ranimove1.c ranimove2.c')
40          ranimove = env.Program(target=radbin('ranimove'), source=rs,
41                          CPPPATH=env.get('CPPPATH', [])+ ['#src/rt'],
42 <                        LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtio',
43 <                        'rtmath','rtcont','rtmem','rtargs','rtproc','rtpath','rterror'] + mlib)
42 >                        LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtmath',
43 >                        'rtnet','rtcont','rtmem','rtargs','rtio','rtproc','rtpath','rterror']
44 >                        + mlib)
45          progs.append(ranimove)
46 +        rsensor = env.Program(target=radbin('rsensor'), source='rsensor.c',
47 +                        CPPPATH=env.get('CPPPATH', [])+ ['#src/rt'],
48 +                        LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtmath',
49 +                        'rtcont','rtmem','rtargs','rtio','rtpath','rterror','rtproc',
50 +                        'rtnet','rtlamps'] + mlib)
51 +        progs.append(rsensor)
52  
53   getinfo = env.Program(target=radbin('getinfo'), source='getinfo.c',
54                  LIBS=['rtio'])
# Line 56 | Line 59 | progs.append(getinfo)
59   if env.has_key('X11LIB'):
60          xincl = env.get('CPPPATH', []) + ['$X11INCLUDE']
61          xlibp = env.get('LIBPATH', []) + ['$X11LIB']
59        x11findwind = env.Object(source='../common/x11findwind.c', # XXX ../not/nice
60                        CPPPATH=xincl)
62          xglaresrc = env.Program(target=radbin('xglaresrc'),
63 <                        source=Split('xglaresrc.c') + [x11findwind],
63 >                        source=Split('xglaresrc.c') + [env.x11findwind], # XXX remote magic
64                          LIBPATH=xlibp, CPPPATH=xincl,
65                          LIBS=['rtpic','rtmath','rtargs','rtio','X11']+ mlib)
66          progs.append(xglaresrc)
# Line 69 | Line 70 | if env.has_key('X11LIB'):
70                  glrad = env.Program(target=radbin('glrad'), source=Split('glrad.c'),
71                          CPPFLAGS=env.get('CPPFLAGS', []) + ['$RAD_STEREO'],
72                          LIBPATH=xlibp, CPPPATH=xincl,
73 <                        LIBS=['rgl','rtpic','rtscene','rtio','rtproc','rtpath','rtargs',
74 <                        'rtmath','rtcont','rtmem','rterror',
75 <                        'GL', 'GLU','X11'],)
73 >                        LIBS=['rgl','rtpic','rtscene','rtproc','rtpath','rtargs','rtio',
74 >                        'rtmath','rtcont','rtmem','rterror','rtdummy',
75 >                        'GL', 'GLU','X11'] + mlib,)
76                  progs.append(glrad)
77  
78   if os.name == 'posix': # XXX ignoring trad.wsh
79 <        for s in Split('''objview objline objpict
80 <                        glare dayfact debugcal rlux raddepend compamb vinfo genambpos'''):
81 <                Default(env.InstallCsh(radbin(s), s + '.csh'))
79 >        for s in Split('''objview objline objpict glare dayfact
80 >                        debugcal rlux raddepend compamb vinfo genambpos fieldcomb'''):
81 >                Default(env.InstallScript(radbin(s), s + '.csh'))
82   # Those don't really work yet
83   #else:
84   #       for s in Split('''objview glare rlux '''):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines