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

File Contents

# Content
1 import os
2
3 Import('env') # inherit from parent
4
5 mlib = env['RAD_MLIB']
6
7 # standard targets
8 PROGS = (
9 # name sources libs
10 ('icalc', Split('calc.c'), ['rtrad'] + mlib),
11 ('ev', Split('ev.c'), ['rtrad'] + mlib),
12 ('rcalc', Split('rcalc.c'), ['rtrad'] + mlib),
13 ('total', Split('total.c'), mlib),
14 ('cnt', Split('cnt.c'), []),
15 ('neaten', Split('neat.c'), []),
16 ('rlam', Split('lam.c'), ['rtrad']),
17 ('tabfunc',Split('tabfunc.c'), ['rtrad'] + mlib),
18 ('histo', Split('histo.c'), mlib),
19 )
20 for p in PROGS:
21 prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
22 source=p[1], LIBS=p[2])
23 Default(prog)
24 env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
25
26 # vim: set syntax=python: