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