1 |
< |
import os |
2 |
< |
|
3 |
< |
Import('env') # inherit from parent |
4 |
< |
|
5 |
< |
# math libs |
6 |
< |
mlib = env['RAD_MLIB'] |
7 |
< |
|
8 |
< |
# standard targets |
9 |
< |
PROGS = ( |
10 |
< |
# name sources libs |
11 |
< |
('genbeads', Split('genbeads.c hermite3.c'), []), |
12 |
< |
('genbox', ['genbox.c',], []), |
13 |
< |
('genmarble', ['genmarble.c',], []), |
14 |
< |
('gensky', Split('gensky.c sun.c',), []), |
15 |
< |
('genblinds', ['genblinds.c',], []), |
16 |
< |
('genprism', ['genprism.c',], []), |
17 |
< |
('genrev', ['genrev.c',], ['rtfunc','rtcont','rtmem','rtio','rterror']), |
18 |
< |
('gencatenary', ['gencat.c',], []), |
19 |
< |
('genworm', ['genworm.c',], |
20 |
< |
['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']), |
21 |
< |
('gensurf', ['gensurf.c',], |
22 |
< |
['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']), |
23 |
< |
('genclock', ['genclock.c',], []), |
24 |
< |
('genbranch', ['genbranch.c',], []), |
25 |
< |
('replmarks', ['replmarks.c',], |
26 |
< |
['rtproc','rtpath','rtmath','rtio','rterror']), |
27 |
< |
#('mkillum', Split('mkillum.c mkillum2.c mkillum3.c'), |
28 |
< |
# ['rtproc','rtscene','rtpath','rtmath','rtio','rtcont','rterror']), |
29 |
< |
#('mksource', ['mksource.c'], |
30 |
< |
# ['rtio','rtmath','rterror']), |
31 |
< |
('xform', ['xform.c',], |
32 |
< |
['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']), |
33 |
< |
) |
34 |
< |
progs = [] |
35 |
< |
for p in PROGS: |
36 |
< |
prog = env.Program(target=os.path.join('$RAD_BUILDBIN', p[0]), |
37 |
< |
source=p[1], LIBS=p[2] + mlib) |
38 |
< |
progs.append(prog) |
39 |
< |
|
40 |
< |
prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mkillum'), |
41 |
< |
source=Split('mkillum.c mkillum2.c mkillum3.c mkillum4.c ezxml.c'), |
42 |
< |
CPPPATH=env.get('CPPPATH', []) + ['#src/rt'], |
43 |
< |
LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtproc', |
44 |
< |
'rtpath','rtmath','rtargs','rtio','rtcont','rtmem','rterror'] |
45 |
< |
+ mlib) |
46 |
< |
prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mksource'), |
47 |
< |
source=['mksource.c'], |
48 |
< |
CPPPATH=env.get('CPPPATH', []) + ['#src/rt'], |
49 |
< |
LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc', |
50 |
< |
'rtmath','rtcont','rtmem','rtargs','rtio','rtpath','rterror'] + mlib) |
51 |
< |
progs.append(prog) |
52 |
< |
|
53 |
< |
if os.name == 'posix': |
54 |
< |
Default(env.InstallCsh(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh')) |
55 |
< |
|
56 |
< |
Default('#src/gen') |
57 |
< |
env.Install('$RAD_BINDIR', progs) |
58 |
< |
|
59 |
< |
#surf.cal clockface.hex |
60 |
< |
LIBFILES = Split('illum.cal rev.cal skybright.cal surf.cal glaze1.cal glaze2.cal clockface.hex') |
61 |
< |
env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES)) |
62 |
< |
|
63 |
< |
|
1 |
> |
import os |
2 |
> |
|
3 |
> |
Import('env') # inherit from parent |
4 |
> |
|
5 |
> |
# math libs |
6 |
> |
mlib = env['RAD_MLIB'] |
7 |
> |
|
8 |
> |
#Make sure sun.c is compiled only once |
9 |
> |
sun = env.Object(source="sun.c") |
10 |
> |
|
11 |
> |
# standard targets |
12 |
> |
PROGS = ( |
13 |
> |
# name sources libs |
14 |
> |
('gendaylit', Split('gendaylit.c',)+[sun], ['rtlamps']), |
15 |
> |
('genbeads', Split('genbeads.c hermite3.c'), []), |
16 |
> |
('genbox', ['genbox.c',], []), |
17 |
> |
('genmarble', ['genmarble.c',], []), |
18 |
> |
('gensky', Split('gensky.c',)+[sun], []), |
19 |
> |
('genblinds', ['genblinds.c',], []), |
20 |
> |
('genprism', ['genprism.c',], []), |
21 |
> |
('genrev', ['genrev.c',], ['rtfunc','rtcont','rtmem','rtio','rterror']), |
22 |
> |
('gencatenary', ['gencat.c',], []), |
23 |
> |
('genworm', ['genworm.c',], |
24 |
> |
['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']), |
25 |
> |
('gensurf', ['gensurf.c',], |
26 |
> |
['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']), |
27 |
> |
('genclock', ['genclock.c',], []), |
28 |
> |
('genbranch', ['genbranch.c',], []), |
29 |
> |
('replmarks', ['replmarks.c',], |
30 |
> |
['rtproc','rtpath','rtmath','rtio','rterror']), |
31 |
> |
#('mkillum', Split('mkillum.c mkillum2.c mkillum3.c'), |
32 |
> |
# ['rtproc','rtscene','rtpath','rtmath','rtio','rtcont','rterror']), |
33 |
> |
#('mksource', ['mksource.c'], |
34 |
> |
# ['rtio','rtmath','rterror']), |
35 |
> |
('xform', ['xform.c',], |
36 |
> |
['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']), |
37 |
> |
) |
38 |
> |
progs = [] |
39 |
> |
for p in PROGS: |
40 |
> |
prog = env.Program(target=os.path.join('$RAD_BUILDBIN', p[0]), |
41 |
> |
source=p[1], LIBS=p[2] + mlib) |
42 |
> |
progs.append(prog) |
43 |
> |
|
44 |
> |
prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mkillum'), |
45 |
> |
source=Split('mkillum.c mkillum2.c mkillum3.c'), |
46 |
> |
CPPPATH=env.get('CPPPATH', []) + ['#src/rt'], |
47 |
> |
LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtproc', |
48 |
> |
'rtpath','rtmath','rtargs','rtio','rtcont','rtmem','rterror'] |
49 |
> |
+ mlib) |
50 |
> |
progs.append(prog) |
51 |
> |
prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mksource'), |
52 |
> |
source=['mksource.c'], |
53 |
> |
CPPPATH=env.get('CPPPATH', []) + ['#src/rt'], |
54 |
> |
LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtproc', |
55 |
> |
'rtmath','rtcont','rtmem','rtargs','rtio','rtpath','rterror'] + mlib) |
56 |
> |
progs.append(prog) |
57 |
> |
|
58 |
> |
if os.name == 'posix': |
59 |
> |
Default(env.InstallCsh(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh')) |
60 |
> |
|
61 |
> |
Default('#src/gen') |
62 |
> |
env.Install('$RAD_BINDIR', progs) |
63 |
> |
|
64 |
> |
#surf.cal clockface.hex |
65 |
> |
LIBFILES = Split('illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal perezlum.cal coeff_perez.dat defangle.dat') |
66 |
> |
env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES)) |
67 |
> |
|
68 |
> |
|