ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/SConscript
Revision: 1.8
Committed: Mon Jan 8 13:38:37 2018 UTC (6 years, 4 months ago) by schorsch
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, HEAD
Changes since 1.7: +4 -1 lines
Log Message:
Updating to SCons 3.x, adding support for Python 3

File Contents

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