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

Comparing ray/src/px/SConscript (file contents):
Revision 1.7 by schorsch, Thu Oct 21 15:47:12 2004 UTC vs.
Revision 1.13 by schorsch, Wed Sep 14 09:26:25 2005 UTC

# Line 13 | Line 13 | def radlib(name): return os.path.join('$RAD_BUILDLIB',
13   warp3d = env.Object(source="warp3d.c")
14   clrtab = env.Object(source="clrtab.c")
15   neuclrtab = env.Object(source="neuclrtab.c")
16 ciq = env.Object(source="ciq.c")
17 cut = env.Object(source="cut.c")
18 closest = env.Object(source="closest.c")
16  
17   # standard targets
18   PROGS = (
# Line 26 | Line 23 | PROGS = (
23          ['rtpic','rtproc','rtpath','rtio','rtargs','rtmath','rtcont','rtmem','rterror']),
24   ('pfilt',    Split('pfilt.c pf2.c pf3.c'),
25          ['rtlamps','rtpic','rtio','rtpath','rtargs','rtmath']),
26 < ('pcwarp',   ['pcwarp.c', warp3d],
26 > ('pcwarp',   ['pcwarp.c', warp3d],      
27          ['rtpic','rtio','rtcont','rtmem','rterror']),
28   ('pvalue',   ['pvalue.c'],    ['rtpic','rtio','rtargs','rtmath']),
29   ('pcompos',  ['pcompos.c'],   ['rtpic','rtproc','rtpath','rtio','rterror']),
# Line 40 | Line 37 | PROGS = (
37   ('pinterp',  ['pinterp.c'],
38          ['rtproc','rtpic','rtio','rtpath','rtargs','rtmath','rtmem','rterror']),
39  
43 ('oki20c',   ['oki20c.c'],['rtpic','rtproc','rtpath','rtio','rtmem','rterror']),
44 ('oki20',    ['oki20.c'], ['rtpic','rtproc','rtpath','rtio','rtmem','rterror']),
45
40   ('ra_gif',   ['ra_gif.c', clrtab, neuclrtab], ['rtpic','rtio','rtmem']),
47 ('ra_pr',    Split('ra_pr.c biq.c')+ [ciq, cut, closest],
48        ['rtpic','rtio','rtmem']),
49 ('ra_pr24',  ['ra_pr24.c'],   ['rtpic','rtio','rtmem']),
50 ('ra_avs',   ['ra_avs.c'],    ['rtpic','rtio','rtmem']),
41   ('ra_ps',    ['ra_ps.c'],     ['rtpic','rtio','rtargs','rtmem']),
42   ('ra_ppm',   ['ra_ppm.c'],    ['rtpic','rtio','rtmem']),
43 < ('ra_bmp',   ['ra_bmp.c'],    ['rtpic','rtio','rtmem']),
43 > ('ra_bmp',   ['ra_bmp.c'],    ['rtpic','rtproc','rtio','rtmem']),
44   ('ra_t8',    ['ra_t8.c', clrtab, neuclrtab], ['rtpic','rtio','rtmem']),
45   ('ra_t16',   ['ra_t16.c'],    ['rtpic','rtio','rtmem']),
56 ('ra_bn',    ['ra_bn.c'],     ['rtpic','rtio','rtmem']),
46   ('ra_rgbe', ['ra_rgbe.c'],['rtpic','rtproc','rtpath','rtio','rtmem','rterror']),
47   ('ra_pict',  ['ra_pict.c'],   ['rtpic','rtio','rtmem']),
48   ('ra_hexbit',['ra_hexbit.c'], ['rtpic','rtio','rtmem']),
# Line 67 | Line 56 | for p in PROGS:
56      progs.append(prog)
57  
58  
70 # special targets not normally built
71 SPECIAL = (
72 # name          files             libs
73 ('psum',       ['psum.c'],       ['rtpic','rtio']),
74 #('panim',      ['panim.c'],      ['client','rpcsvc']),# missing externals
75
76 ('ra_im',      ['ra_im.c'],      ['rtproc','rtpath','rtio','rterror']),
77
78 #('aedimage',   Split('aedimage.c')+[ciq, cut, closest],[]),# missing externals
79 ('t4027',      ['t4027.c'],      ['rtpic']),
80 ('paintjet',   ['paintjet.c'],   ['rtpic','rtio','rtmem']),
81 ('mt160r',     ['mt160r.c'],     ['rtpic','rtio','rtmem']),
82 ('greyscale',  ['greyscale.c'],  ['rtpic']),
83 ('colorscale', ['colorscale.c'], ['rtpic']),
84 ('d48c',       ['d48c.c'],       ['rtpic']),
85 )
86 specprogs = []
87 specinst = []
88 for p in SPECIAL:
89        prog = env.Program(target=radbin(p[0]), source=p[1], LIBS=p[2]+mlib)
90        specprogs.append(prog)
91        specinst.append(env.Install('$RAD_BINDIR', prog))
92 env.Alias('px_special', specprogs)
93 env.Alias('px_special_install', specinst)
94
95
59   # tiff library (unix-specific for the moment)
60   if os.name == 'posix':
61          cwd = os.getcwd()
62 +        upperdir = os.path.split(cwd)[0]
63 +
64          libtiff = env.Command(radlib(env['LIBPREFIX'] + 'tiff' + env['LIBSUFFIX']),
65 <                'tiff/config.local',
66 <        [('cd "%s"; '
67 <        'sh ./configure -quiet -noninteractive '
68 <                '-with-CC="$CC" -with-ENVOPTS="$CCFLAGS"; '
69 <        'cd libtiff; '
70 <        'make install;') % os.path.join(cwd, 'tiff')])
65 >                None,
66 >        [('cd "%(tiffdir)s"; '
67 >                'env CC="$CC" '
68 >                './configure -C '#-with-CC="$CC" '
69 >                '"libdir=%(upperdir)s/lib" '
70 >                '--enable-static --disable-shared --disable-cxx '
71 >                '--enable-logluv --disable-jpeg '
72 >        '--disable-zlib --disable-pixarlog; '
73 >                'cd %(portdir)s; make all;'
74 >                'cd %(libtiffdir)s; make install-exec;' # don't install headers
75 >         ) % {
76 >        'upperdir':upperdir,
77 >        'tiffdir':os.path.join(cwd, 'tiff'),
78 >        'portdir':os.path.join(cwd, 'tiff', 'port'),
79 >        'libtiffdir':os.path.join(cwd, 'tiff', 'libtiff')
80 >        }
81 >        ])
82  
83 + #       libtiff = env.Command(radlib(env['LIBPREFIX'] + 'tiff' + env['LIBSUFFIX']),
84 + #               'tiff/config.local',
85 + #       [('cd "%s"; '
86 + #       'sh ./configure -quiet -noninteractive '
87 + #               '-with-CC="$CC" -with-ENVOPTS="$CCFLAGS"; '
88 + #       'cd libtiff; '
89 + #       'make install;') % os.path.join(cwd, 'tiff')])
90 +
91          # tiff programs
92          ra_tiff = env.Program(target=radbin('ra_tiff'), source=Split('ra_tiff.c'),
93                  LIBS=['tiff','rtpic','rtio','rtmem'] + mlib)
# Line 114 | Line 98 | if os.name == 'posix':
98          progs.append(normtiff)
99  
100  
117 # pixar format requires extra lib
118 if env.has_key('PIXAR_LIB'):
119    ra_pixar = env.Program(radbin('ra_pixar'), source='ra_pixar.c',
120        LIBS=['rtpic', '$PIXAR_LIB'])
121    progs.append(ra_pixar)
122
123
101   # X11 targets
102   if env.has_key('X11LIB'):
103      xincl = env.get('CPPPATH', []) + ['$X11INCLUDE']
# Line 139 | Line 116 | if env.has_key('X11LIB'):
116          CPPPATH=xincl, LIBPATH=xlibp, LIBS=xlibs + mlib)
117      progs.append(xshowtrace)
118  
142 # NeWS ?!?
143 #    if env.has_key('OGL'):
144 #        glimage = env.Program(target=radbin('glimage'),
145 #            CPPFLAGS=env.get('CPPFLAGS', []) + [env['RAD_STEREO']],
146 #            source=Split('glimage.c'),
147 #            LIBS=['gl_s']+env['LIBS'],)
148 #        progs.append(glimage)
119  
150
120   if os.name == 'posix': # XXX ignoring trad.wsh
121          for s in Split('''normpat falsecolor pdfblur
122 <                        pmblur xyzimage phisto pdelta pgblur'''):
122 >                        pmblur xyzimage phisto pdelta pgblur ra_pfm'''):
123                  Default(env.InstallCsh(radbin(s), s + '.csh'))
124 + # XXX probably needs fixing
125 + #else:
126 + #       for s in Split('''falsecolor'''):
127 + #               Default(env.InstallCsh(radbin(s), s + '.csh'))
128  
129   Default('#src/px')
130   env.Install('$RAD_BINDIR', progs)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines