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

Comparing ray/build_utils/load_plat.py (file contents):
Revision 1.7 by schorsch, Mon Sep 19 11:30:09 2005 UTC vs.
Revision 1.11 by schorsch, Thu Apr 24 10:28:24 2008 UTC

# Line 1 | Line 1
1  
2   import os
3   import sys
4 import string
4   import ConfigParser
5  
6  
# Line 13 | Line 12 | def read_plat(env, args, fn):
12          cfig.read(fn)
13          buildvars = [['CC'], # replace
14                          ['CPPPATH', 'CPPDEFINES', 'CPPFLAGS', 'CCFLAGS',
15 <                        'LIBPATH', 'LINKFLAGS']] # append
15 >                        'LIBPATH', 'LINKFLAGS',
16 >                        'EZXML_CPPDEFINES', # build flags specific to ezxml.c
17 >                        ]] # append
18          vars = [
19                  ['install',
20                          ['RAD_BASEDIR', 'RAD_BINDIR', 'RAD_RLIBDIR', 'RAD_MANDIR'],
# Line 21 | Line 22 | def read_plat(env, args, fn):
22                  ['code',
23                          [], # replace
24                          [   # append
25 <                        'RAD_COMPAT',    # currently obsolete
25 >                        'RAD_COMPAT',     # theoretically obsolete (src/common/strcmp.c)
26                          'RAD_MATHCOMPAT', # erf.c floating point error function
27                          'RAD_ARGSCOMPAT', # fixargv0.c for Windows
28                          'RAD_NETCOMPAT',  # [win_]netproc.c for ranimate
29                          'RAD_MLIB',       # usually 'm', or any fastlib available
30                          'RAD_SOCKETLIB',  # ws_2_32 on Windows (VC links it automatically)
31 <                        'RAD_PROCESS']],  # our process abstraction and win_popen()
31 >                        'RAD_PROCESS',    # our process abstraction and win_popen()
32 >                        'RAD_PCALLS',     # more custom process abstraction
33 >                        ]],
34          ]
35          if args.get('RAD_DEBUG',0):
36                  vars.insert(0, ['debug'] + buildvars)
# Line 42 | Line 45 | def read_plat(env, args, fn):
45                          for p in section[2]: # multiple items to append
46                                  try: v = cfig.get(section[0], p)
47                                  except ConfigParser.NoOptionError: continue
48 <                                apply(env.Append,[],{p:string.split(v)})
46 <                                #print '%s: %s' % (p, env[p])
48 >                                apply(env.Append,[],{p:env.Split(v)})
49          # XXX Check that basedir exists.
50          for k in ['RAD_BINDIR', 'RAD_RLIBDIR', 'RAD_MANDIR']:
51                  if (env.has_key('RAD_BASEDIR') and env.has_key(k)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines