--- ray/build_utils/load_plat.py 2005/09/19 11:30:09 1.7 +++ ray/build_utils/load_plat.py 2008/04/24 10:28:24 1.11 @@ -1,7 +1,6 @@ import os import sys -import string import ConfigParser @@ -13,7 +12,9 @@ def read_plat(env, args, fn): cfig.read(fn) buildvars = [['CC'], # replace ['CPPPATH', 'CPPDEFINES', 'CPPFLAGS', 'CCFLAGS', - 'LIBPATH', 'LINKFLAGS']] # append + 'LIBPATH', 'LINKFLAGS', + 'EZXML_CPPDEFINES', # build flags specific to ezxml.c + ]] # append vars = [ ['install', ['RAD_BASEDIR', 'RAD_BINDIR', 'RAD_RLIBDIR', 'RAD_MANDIR'], @@ -21,13 +22,15 @@ def read_plat(env, args, fn): ['code', [], # replace [ # append - 'RAD_COMPAT', # currently obsolete + 'RAD_COMPAT', # theoretically obsolete (src/common/strcmp.c) 'RAD_MATHCOMPAT', # erf.c floating point error function 'RAD_ARGSCOMPAT', # fixargv0.c for Windows 'RAD_NETCOMPAT', # [win_]netproc.c for ranimate 'RAD_MLIB', # usually 'm', or any fastlib available 'RAD_SOCKETLIB', # ws_2_32 on Windows (VC links it automatically) - 'RAD_PROCESS']], # our process abstraction and win_popen() + 'RAD_PROCESS', # our process abstraction and win_popen() + 'RAD_PCALLS', # more custom process abstraction + ]], ] if args.get('RAD_DEBUG',0): vars.insert(0, ['debug'] + buildvars) @@ -42,8 +45,7 @@ def read_plat(env, args, fn): for p in section[2]: # multiple items to append try: v = cfig.get(section[0], p) except ConfigParser.NoOptionError: continue - apply(env.Append,[],{p:string.split(v)}) - #print '%s: %s' % (p, env[p]) + apply(env.Append,[],{p:env.Split(v)}) # XXX Check that basedir exists. for k in ['RAD_BINDIR', 'RAD_RLIBDIR', 'RAD_MANDIR']: if (env.has_key('RAD_BASEDIR') and env.has_key(k)