ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/SConscript
Revision: 1.9
Committed: Thu Apr 24 10:28:25 2008 UTC (15 years, 11 months ago) by schorsch
Branch: MAIN
Changes since 1.8: +4 -1 lines
Log Message:
More fixes for mingw build/install.

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     PROGS = (
10 schorsch 1.3 # name sources libs
11     ('genbeads', Split('genbeads.c hermite3.c'), []),
12     ('genbox', ['genbox.c',], []),
13     ('genmarble', ['genmarble.c',], []),
14     ('gensky', Split('gensky.c sun.c',), []),
15     ('genblinds', ['genblinds.c',], []),
16     ('genprism', ['genprism.c',], []),
17 schorsch 1.5 ('genrev', ['genrev.c',], ['rtfunc','rtcont','rtmem','rtio','rterror']),
18 schorsch 1.3 ('gencatenary', ['gencat.c',], []),
19 schorsch 1.5 ('genworm', ['genworm.c',],
20     ['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']),
21     ('gensurf', ['gensurf.c',],
22     ['rtfunc','rtmem','rtcont','rtmath','rtio','rterror']),
23 schorsch 1.3 ('genclock', ['genclock.c',], []),
24     ('genbranch', ['genbranch.c',], []),
25     ('replmarks', ['replmarks.c',],
26 schorsch 1.2 ['rtproc','rtpath','rtmath','rtio','rterror']),
27 schorsch 1.8 #('mkillum', Split('mkillum.c mkillum2.c mkillum3.c'),
28     # ['rtproc','rtscene','rtpath','rtmath','rtio','rtcont','rterror']),
29 schorsch 1.7 #('mksource', ['mksource.c'],
30     # ['rtio','rtmath','rterror']),
31 schorsch 1.3 ('xform', ['xform.c',],
32 schorsch 1.2 ['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']),
33 schorsch 1.1 )
34 schorsch 1.4 progs = []
35 schorsch 1.1 for p in PROGS:
36 schorsch 1.7 prog = env.Program(target=os.path.join('$RAD_BUILDBIN', p[0]),
37 schorsch 1.2 source=p[1], LIBS=p[2] + mlib)
38 schorsch 1.4 progs.append(prog)
39    
40 schorsch 1.9 ezxml = env.Object('ezxml.c',
41     CPPDEFINES=env.get('CPPDEFINES',[]) + env.get('EZXML_CPPDEFINES',[]))
42    
43 schorsch 1.8 prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mkillum'),
44 schorsch 1.9 source=Split('mkillum.c mkillum2.c mkillum3.c mkillum4.c') + ezxml,
45 schorsch 1.8 CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
46     LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc','rtproc',
47     'rtpath','rtmath','rtargs','rtio','rtcont','rtmem','rterror']
48     + mlib)
49 schorsch 1.7 prog = env.Program(target=os.path.join('$RAD_BUILDBIN', 'mksource'),
50     source=['mksource.c'],
51     CPPPATH=env.get('CPPPATH', []) + ['#src/rt'],
52 schorsch 1.8 LIBS=['raycalls','rttrace','rtscene','rtpic','rtfunc',
53     'rtmath','rtcont','rtmem','rtargs','rtio','rtpath','rterror'] + mlib)
54 schorsch 1.7 progs.append(prog)
55    
56 schorsch 1.4 if os.name == 'posix':
57     Default(env.InstallCsh(os.path.join('$RAD_BUILDBIN', 'glaze'), 'glaze.csh'))
58    
59     Default('#src/gen')
60     env.Install('$RAD_BINDIR', progs)
61 schorsch 1.1
62     #surf.cal clockface.hex
63 schorsch 1.6 LIBFILES = Split('illum.cal rev.cal skybright.cal surf.cal glaze1.cal glaze2.cal clockface.hex')
64 schorsch 1.4 env.Append(RAD_RLIBINSTALL=env.Install('$RAD_RLIBDIR', LIBFILES))
65    
66 schorsch 1.2