ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/SConscript
Revision: 1.6
Committed: Sat Mar 5 13:24:58 2016 UTC (8 years, 8 months ago) by schorsch
Branch: MAIN
Changes since 1.5: +1 -0 lines
Log Message:
SCons build now fully functional again on linux (SCons 2.3.0, Python 2.7)

File Contents

# User Rev Content
1 schorsch 1.1 import os
2    
3     Import('env') # inherit from parent
4    
5     # math libs
6     mlib = env['RAD_MLIB']
7    
8     # standard targets
9 schorsch 1.5 env.Object(source='bbox.c')
10     env.Object(source='o_face.c')
11 schorsch 1.1 PROGS = (
12 schorsch 1.5 ('oconv', Split('''oconv.c writeoct.c bbox.o initotypes.c
13     sphere.c o_face.o o_cone.c o_instance.c'''), []),
14     ('getbbox', Split('getbbox.c readobj2.c bbox.o init2otypes.c'), []),
15     ('obj2mesh', Split('obj2mesh.c cvmesh.c wfconv.c o_face.o writemesh.c'),
16     ['rtdummy']),
17 schorsch 1.1 )
18     for p in PROGS:
19     prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
20 schorsch 1.3 source=p[1], LIBS=['rtproc','rtscene','rtpath','rtio','rtmath',
21 schorsch 1.5 'rtargs','rtcont','rtmem','rterror','rtproc']+p[2]+mlib)
22 schorsch 1.1 Default(prog)
23     env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
24    
25    
26 schorsch 1.6 # vim: set syntax=python: