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.2 by schorsch, Mon Oct 27 10:35:41 2003 UTC vs.
Revision 1.4 by schorsch, Mon Sep 12 11:32:30 2005 UTC

# Line 17 | Line 17 | def read_plat(env, args, fn):
17          cfig = ConfigParser.ConfigParser(env.Dictionary())
18          cfig.read(fn)
19          buildvars = [['CC'], # replace
20 <                        ['CPPPATH','CPPFLAGS','CCFLAGS','LIBPATH','LINKFLAGS']] # append
20 >                        ['CPPPATH', 'CPPDEFINES', 'CPPFLAGS', 'CCFLAGS',
21 >                        'LIBPATH', 'LINKFLAGS']] # append
22          vars = [
23                  ['install',
24                          ['RAD_BASEDIR', 'RAD_BINDIR', 'RAD_RLIBDIR', 'RAD_MANDIR'],
# Line 50 | Line 51 | def read_plat(env, args, fn):
51  
52  
53   def load_plat(env, args, platform=None):
54 +        for k,v in env.items(): print k,v
55          if os.name == 'posix':
56                  POSIX_setup(env)
57          if platform == None: # override
58                  p = sys.platform
59          else: p = platform
60 +        if p == 'win32' and 'gcc' in env['TOOLS']:
61 +                p = 'mingw'
62          pl = []
63          print 'Detected platform "%s" (%s).' % (sys.platform, os.name)
64          for i in [len(p), -1, -2]:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines