ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/SConstruct
(Generate patch)

Comparing ray/SConstruct (file contents):
Revision 1.3 by schorsch, Sun Jul 4 12:08:47 2004 UTC vs.
Revision 1.6 by schorsch, Thu Feb 10 16:42:04 2005 UTC

# Line 4 | Line 4 | import sys
4   import string
5  
6   OPTFILE = 'rayopts.py'
7 <
7 > SourceSignatures('timestamp')
8   def set_opts(env):
9      # XXX add some caching
10      opts = Options(OPTFILE, ARGUMENTS)
# Line 26 | Line 26 | def allplats_setup(env):
26      from build_utils import find_libs
27      find_libs.find_x11(env)
28      find_libs.find_gl(env) # OpenGL
29    #find_libs.find_pixar(env) # PIXAR_LIB for src/px/ra_pixar.c
29  
30   def post_common_setup(env):
31      env.Append(CPPPATH = [os.path.join('#src', 'common')])
# Line 45 | Line 44 | def shareinstall_setup(env):
44   # Set up build environment
45   env = Environment()
46  
47 + if os.name == 'posix':
48 +        from build_utils import install
49 +        csh_b = Builder(action = install.install_cshscript,
50 +                        suffix = '', src_suffix = '.csh')
51 +        env.Append(BUILDERS={'InstallCsh': csh_b})
52 +
53   # configure platform-specific stuff
54   from build_utils import load_plat
55   load_plat.load_plat(env, ARGUMENTS, platform=None)
# Line 60 | Line 65 | if not env['SKIP'] and not '-c' in sys.argv:
65   # fill in generic config
66   allplats_setup(env)
67  
68 +                
69 +
70   # Bring in all the actual things to build
71   Export('env')
72   SConscript(os.path.join('src', 'common', 'SConscript'))
# Line 71 | Line 78 | for d in Split('meta cv gen ot rt px hd util cal'):
78   if string.find(string.join(sys.argv[1:]), 'install') > -1:
79          shareinstall_setup(env)
80  
81 + Default('.')
82 +
83   # virtual targets
84 < # RAD_XXXINSTALL are filled in by the local scripts
85 < env.Alias('bininstall',  env.get('RAD_BININSTALL', []))
86 < env.Alias('rlibinstall', env.get('RAD_RLIBINSTALL',[]))
78 < env.Alias('maninstall',  env.get('RAD_MANINSTALL', []))
84 > env.Alias('bininstall',  '$RAD_BINDIR')
85 > env.Alias('rlibinstall', '$RAD_RLIBDIR')
86 > env.Alias('maninstall',  '$RAD_MANDIR')
87  
88   env.Alias('build',   ['#bin'])
89   env.Alias('test',    ['#src/test'])
90   env.Alias('install', ['bininstall', 'rlibinstall', 'maninstall'])
83
84 # Further virtual targets are defined locally:
85 # meta_special: mt1601 okimate imagew mt160 mx80 impress aed5
86 #               tcurve tscat tbar mtext libt4014.a plotout t4014
87 # px_special:   ra_im, t4027, paintjet, mt160t, greyscale, colorscale, d48c
88 # util_special: scanner, makedist (not for Windows yet)
89 env.Alias('special', ['meta_special', 'px_special', 'util_special'])
90 env.Alias('special_install', ['meta_special_install',
91                'px_special_install', 'util_special_install'])
91  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines