29 |
|
|
30 |
|
# standard targets |
31 |
|
PROGS = [ |
32 |
– |
('thf2rad', ['thf2rad.c'], []), |
32 |
|
('ies2rad', ['ies2rad.c'], ['rtlamps','rtcolor','rtio','rtpath']+ mlib), |
33 |
|
('arch2rad', ['arch2rad.c',trans],['rtcont','rtmem'] + mlib), |
34 |
|
('nff2rad', ['nff2rad.c'], []), |
35 |
< |
('lampcolor', ['lampcolor.c'], ['rtlamps','rtcolor','rtpath']), |
35 |
> |
('lampcolor', ['lampcolor.c'], ['rtlamps','rtcolor','rtio','rtpath']), |
36 |
|
('tmesh2rad', ['tmesh2rad.c'], ['rtscene','rtmath'] + mlib), |
37 |
|
('obj2rad', ['obj2rad.c',trans], |
38 |
|
['rtscene','rtargs','rtio','rtcont','rtmem','rtmath','rterror'] + mlib), |
40 |
|
('rad2mgf', ['rad2mgf.c'], |
41 |
|
['rtproc', 'rtpath', # for win_popen() |
42 |
|
'rtscene','rtio','rtcolor','rtcont','rtmem','rterror'] + mlib), |
44 |
– |
('mgf2meta', ['mgf2meta.c'], |
45 |
– |
['meta','rtmath','rtcont','rtmem','rterror','mgf'] + mlib), |
43 |
|
] |
44 |
|
for p in PROGS: |
45 |
|
prog = env.Program(target=radbin(p[0]), source=p[1], LIBS=p[2]) |
46 |
|
Default(prog) |
47 |
|
env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)]) |
48 |
+ |
|
49 |
+ |
# meta targets |
50 |
+ |
prog = env.Program(target=radbin('mgf2meta'), source=['mgf2meta.c'], |
51 |
+ |
CPPPATH=env.get('CPPPATH', []) + [os.path.join('#src','meta')], |
52 |
+ |
LIBS=['meta','rtmath','rtcont','rtmem','rterror','mgf'] + mlib) |
53 |
|
|
54 |
|
LIBFILES = Split('source.cal tilt.cal')# lamp.tab') |
55 |
|
env.Append(RAD_RLIBINSTALL=env.Install(env['RAD_RLIBDIR'], LIBFILES)) |