ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/SConscript
Revision: 1.9
Committed: Fri Mar 18 22:57:24 2016 UTC (8 years, 1 month ago) by schorsch
Branch: MAIN
CVS Tags: rad5R1
Changes since 1.8: +3 -2 lines
Log Message:
better solution for addobjnotify

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 schorsch 1.9 addobj = env.get('ADDOBJNOTIFY')
8 schorsch 1.1
9     # standard targets
10 schorsch 1.7 bbox = env.Object(source='bbox.c')
11     o_face = env.Object(source='o_face.c')
12 schorsch 1.1 PROGS = (
13 schorsch 1.7 ('oconv', Split('''oconv.c writeoct.c initotypes.c sphere.c
14     o_cone.c o_instance.c''') +[bbox, o_face], []),
15     ('getbbox', Split('getbbox.c readobj2.c init2otypes.c') +[bbox], []),
16 schorsch 1.9 ('obj2mesh', Split('obj2mesh.c cvmesh.c wfconv.c writemesh.c')+[o_face,addobj],
17     []),
18 schorsch 1.1 )
19     for p in PROGS:
20     prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
21 schorsch 1.8 source=p[1], LIBS=['rtrad']+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: