ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/SConscript
Revision: 1.7
Committed: Mon Sep 19 12:32:12 2005 UTC (18 years, 7 months ago) by schorsch
Branch: MAIN
CVS Tags: rad3R8
Changes since 1.6: +10 -1 lines
Log Message:
Added mksource to SCons build, fixed some compile warnings.

File Contents

# Content
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', 'mksource'),
41 source=['mksource.c'],
42 CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
43 LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtio',
44 'rtmath','rtcont','rtmem','rtargs','rtpath','rterror'] + mlib)
45 progs.append(prog)
46
47 if os.name == 'posix':
48 Default(env.InstallCsh(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
49
50 Default('#src/gen')
51 env.Install('$RAD_BINDIR', progs)
52
53 #surf.cal clockface.hex
54 LIBFILES = Split('illum.cal rev.cal skybright.cal surf.cal glaze1.cal glaze2.cal clockface.hex')
55 env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
56
57