ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/SConscript
Revision: 1.18
Committed: Thu Mar 10 21:43:22 2016 UTC (8 years, 2 months ago) by schorsch
Branch: MAIN
CVS Tags: rad5R1
Changes since 1.17: +9 -17 lines
Log Message:
reduce the number of libraries created

File Contents

# User Rev Content
1 greg 1.14 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 schorsch 1.18 ('gendaylit', Split('gendaylit.c',)+[sun], ['rtrad']),
15     ('gendaymtx', Split('gendaymtx.c',)+[sun], ['rtrad',mlib]),
16 greg 1.14 ('genbeads', Split('genbeads.c hermite3.c'), []),
17     ('genbox', ['genbox.c',], []),
18     ('genmarble', ['genmarble.c',], []),
19     ('gensky', Split('gensky.c',)+[sun], []),
20     ('genblinds', ['genblinds.c',], []),
21     ('genprism', ['genprism.c',], []),
22 schorsch 1.18 ('genrev', ['genrev.c',], ['rtrad',]),
23 greg 1.14 ('gencatenary', ['gencat.c',], []),
24 schorsch 1.18 ('genworm', ['genworm.c',], ['rtrad']),
25     ('gensurf', ['gensurf.c',], ['rtrad']),
26 greg 1.14 ('genclock', ['genclock.c',], []),
27     ('genbranch', ['genbranch.c',], []),
28 schorsch 1.18 ('replmarks', ['replmarks.c',], ['rtrad']),
29     ('xform', ['xform.c',], ['rtrad']),
30 greg 1.14 )
31     progs = []
32     for p in PROGS:
33     prog = env.Program(target=os.path.join('$RAD_BUILDBIN', p[0]),
34     source=p[1], LIBS=p[2] + mlib)
35     progs.append(prog)
36    
37     prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mkillum'),
38     source=Split('mkillum.c mkillum2.c mkillum3.c'),
39     CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
40 schorsch 1.18 LIBS=['raycalls','rttrace','rtrad'] + mlib)
41 greg 1.14 progs.append(prog)
42     prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mksource'),
43     source=['mksource.c'],
44     CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
45 schorsch 1.18 LIBS=['raycalls','rttrace','rtrad'] + mlib)
46 greg 1.14 progs.append(prog)
47    
48     if os.name == 'posix':
49 schorsch 1.15 Default(env.InstallScript(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
50 greg 1.14
51     Default('#src/gen')
52     env.Install('$RAD_BINDIR', progs)
53    
54     #surf.cal clockface.hex
55 schorsch 1.16 LIBFILES = Split('''illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal
56 schorsch 1.17 perezlum.cal''')
57 greg 1.14 env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
58    
59 schorsch 1.16 # vim: set syntax=python: