ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/SConscript
Revision: 1.13
Committed: Wed Dec 15 01:40:11 2010 UTC (13 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.12: +1 -0 lines
Log Message:
Updated SConscript files for compiling under MINGW

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