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

Comparing ray/src/meta/SConscript (file contents):
Revision 1.3 by schorsch, Sun Jul 4 12:08:48 2004 UTC vs.
Revision 1.8 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')
# Line 19 | Line 21 | mfio = env.Object(source='mfio.c')
21   misc = env.Object(source='misc.c')
22   primout = env.Object(source='primout.c')
23   plot = env.Object(source='plot.c')
24 + rplot = env.Object(source='rplot.c')
25   palloc = env.Object(source='palloc.c')
23 mplot = env.Object(source='mplot.c')
26   plotin = env.Object(source='plotin.c')
25 tgraph = env.Object(source='tgraph.c')
27   mgvars = env.Object(source='mgvars.c')
28   mgraph = env.Object(source='mgraph.c')
29   cgraph = env.Object(source='cgraph.c')
30   gcalc = env.Object(source='gcalc.c')
31   # multiple output from same source
31 plotout = env.Object(source='plotout.c')
32 t4014 = env.Object(target="t4014", source='plotout.c',
33                CPPFLAGS=env.get('CPPFLAGS',[]) + ['-DFORTEK'])
32  
33   common = [mfio, misc, syscalls]
34  
# Line 39 | Line 37 | libmeta = env.StaticLibrary(radlib('meta'),
37  
38   # standard targets
39   PROGS = (
40 < ('meta2tga', Split('meta2tga.c rplot.c') +[palloc, plot] + common,
41 <        ['rtproc','rtpath','rtio', # proc/path/rtio for win_popen()
42 <        'rtcont','rtmem','rterror']),
43 < ('pexpand',  Split('pexpand.c expand.c segment.c') +[palloc]+ common,
44 <        ['rtcont','rtmem','rterror']),
45 < ('psort',    Split('psort.c sort.c') +[palloc]+ common,
46 <        ['rtpath','rtcont','rtmem','rterror']),
47 < ('cv',       Split('cv.c cvhfio.c') + common,
48 <        ['rtcont','rtmem','rterror']),
49 < ('psmeta',   Split('psmeta.c psplot.c') + common,
50 <        ['rtcont','rtmem','rterror']),
51 < ('plotin',   [plotin, primout] + common,
54 <        ['rtcont','rtmem','rterror']),
55 < ('bgraph',   [bgraph, mgraph, mgvars],
56 <        ['rtproc','rtpath','rtio', # proc/path/rtio for win_popen()
57 <        'rtfunc','rtcont','rtmem','meta','rterror']),
58 < ('igraph',   [igraph, gcalc, cgraph, mgraph, mgvars],
59 <        ['rtproc','rtpath','rtio', # proc/path/rtio for win_popen()
60 <        'rtfunc','rtcont','rtmem','meta','rterror']),
61 < ('dgraph',   [dgraph, cgraph, mgvars],
62 <        ['rtproc','rtpath','rtio', # proc/path/rtio for win_popen()
63 <        'rtfunc','rtcont','rtmem','rterror']),
64 < ('gcomp',    [gcomp, gcalc, mgvars],
65 <        ['rtproc','rtpath','rtio', # proc/path/rtio for win_popen()
66 <        'rtfunc','rtcont','rtmem','rterror']),
67 < ('plot4',    Split('plot4.c') +[primout]+ common,
68 <        ['rtproc','rtpath','rtio', # proc/path/rtio for win_popen()
69 <        'rtcont','rtmem','rterror']),
40 > ('meta2bmp', Split('meta2bmp.c') +[rplot, palloc, plot] + common, ['rtrad']),
41 > ('meta2tga', Split('meta2tga.c') +[rplot, palloc, plot] + common, ['rtrad']),
42 > ('pexpand',  Split('pexpand.c expand.c segment.c') +[palloc]+ common,['rtrad']),
43 > ('psort',    Split('psort.c sort.c') +[palloc]+ common, ['rtrad']),
44 > ('cv',       Split('cv.c cvhfio.c') + common, ['rtrad']),
45 > ('psmeta',   Split('psmeta.c psplot.c') + common, ['rtrad']),
46 > ('plotin',   [plotin, primout] + common, ['rtrad']),
47 > ('bgraph',   [bgraph, mgraph, mgvars], ['rtrad', 'meta']),
48 > ('igraph',   [igraph, gcalc, cgraph, mgraph, mgvars], ['rtrad', 'meta']),
49 > ('dgraph',   [dgraph, cgraph, mgvars], ['rtrad']),
50 > ('gcomp',    [gcomp, gcalc, mgvars], ['rtrad']),
51 > ('plot4',    Split('plot4.c') +[primout]+ common, ['rtrad']),
52   )
53   for p in PROGS:
54          prog = env.Program(target=radbin(p[0]), source=p[1],
55 <                        LIBS=p[2]+env['RAD_MLIB'])
55 >                        LIBS=p[2]+env['RAD_MLIB'], )
56          Default(prog)
57          env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
58  
77
78 lib4014srcs = Split('''arc.c box.c circle.c close.c dot.c erase.c label.c
79        line.c linemod.c move.c open.c point.c space.c subr.c''')
80 lib4014 = env.Library(os.path.join(env['RAD_BUILDLIB'], '4014'),
81                source=map(lambda s:os.path.join('lib4014', s), lib4014srcs))
82
83 plotsrc = [mplot, palloc, plot]
84
85 SPECIAL = (
86 ('mt160l',   Split('mt160l.c') + plotsrc + common,
87        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
88 ('mt160',    Split('mt160.c') + plotsrc + common,
89        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
90 ('mtext',    Split('mtext.c') +[primout]+ common,
91        ['rtcont','rtmem','rterror']),
92 ('okimate',  Split('okimate.c') + plotsrc + common,
93        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
94 ('mx80',     Split('mx80.c') + plotsrc + common,
95        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
96 ('imagew',   Split('imagew.c') + plotsrc + common,
97        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
98 ('impress',  Split('impress.c implot.c imPfuncs.c') +[plot]+ common,
99        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
100 ('aed5',     Split('aed5.c') + common,
101        ['rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
102 ('tcurve',   Split('tcurve.c') +[tgraph, primout]+ common,
103        ['rtcont','rtmem','rterror']),
104 ('tscat',    Split('tscat.c') +[tgraph, primout]+ common,
105        ['rtpath','rtcont','rtmem','rterror']),
106 ('tbar',     Split('tbar.c') +[tgraph, primout]+ common,
107        ['rtcont','rtmem','rterror']),
108 ('plotout',  [plotout] + common,
109        ['4014', 'rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
110 ('t4014',    [t4014] + common,
111        ['4014', 'rtproc','rtpath','rtio','rtcont','rtmem','rterror']),
112 )
113 sbin = []
114 sinst = []
115 for p in SPECIAL:
116        prog = env.Program(target=radbin(p[0]), source=p[1],
117                        LIBS=p[2]+env['RAD_MLIB'])
118        sbin.append(prog)
119        sinst.append(env.Install(env['RAD_BINDIR'], prog))
120 env.Alias('meta_special', sbin)
121 env.Alias('meta_special_install', sinst)
122
59   # X11 targets
60   if env.has_key('X11LIB'):
61          x11meta = env.Program(radbin('x11meta'), [plotin, primout]+ common,
62                  CPPPATH=env.get('CPPPATH',[])+[env['X11INCLUDE']],
63                  LIBPATH=env.get('LIBPATH',[])+[env['X11LIB']],
64 <                LIBS=['rtcont','rtmem','rterror', 'X11'] + env['RAD_MLIB'])
64 >                LIBS=['rtrad', 'X11'] + env['RAD_MLIB'])
65          Default(x11meta)
66          env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], x11meta)])
67  
68  
69 + # vim: set syntax=python:
70 + # vi: set ts=4 sw=4 :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines