| 1 |
+ |
from __future__ import division, print_function, unicode_literals |
| 2 |
+ |
|
| 3 |
|
import os |
| 4 |
|
|
| 5 |
|
Import('env') # inherit from parent |
| 13 |
|
# standard targets |
| 14 |
|
PROGS = ( |
| 15 |
|
# name sources libs |
| 16 |
< |
('gendaylit', Split('gendaylit.c',)+[sun], ['rtlamps']), |
| 17 |
< |
('gendaymtx', Split('gendaymtx.c',)+[sun], |
| 16 |
< |
['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror',mlib]), |
| 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']), |
| 27 |
< |
('gensurf', ['gensurf.c',], |
| 28 |
< |
['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']), |
| 33 |
< |
('xform', ['xform.c',], |
| 34 |
< |
['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: |
| 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', |
| 46 |
< |
'rtnet','rtpath','rtmath','rtargs','rtio','rtcont','rtmem','rterror'] |
| 47 |
< |
+ 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', |
| 53 |
< |
'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) |
| 65 |
|
env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES)) |
| 66 |
|
|
| 67 |
|
# vim: set syntax=python: |
| 68 |
+ |
# vi: set ts=4 sw=4 : |