łň ”,9Mc @s˜dZdZddkZddkZddkZddkZd„Zd„Zddd„ƒYZ dd gZ d d d d dgZ d„Z d„Z dS(sńSCons.Tool.mwcc Tool-specific initialization for the Metrowerks CodeWarrior compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. s<src/engine/SCons/Tool/mwcc.py 4629 2010/01/17 22:23:21 sconsi˙˙˙˙NcCsf|iddƒ}t|tƒodSn|djodSntƒ}d}|o2xD|D]#}t|ƒ|jo |}q\q\Wn|o|d}n||d<||d<|djodSn|id|iƒ|id|iƒ|d}|i |d <|i |d Rst MWCIncludest MWLibrariesN(tgett isinstancet MWVersiontNonet find_versionststrtPrependENVPathtclpathtdllpathtpathtlicensetstringtjointmaptincludestostpathseptlibs(tenvtdesiredtversionstversiontvRtplus((s4install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pytset_vars)s6          %%c Csg}tiioyätii}d}tii||ƒ}d}x°|dtii||ƒ}tii||ƒ}yUtii|dƒ}tii|dƒ}t|d|ddƒ} |i| ƒWntii j onX|d}qFWqtii j oqXn|S(sBReturn a list of MWVersion objects representing installed versionss0SOFTWARE\Metrowerks\CodeWarrior\Product Versionsis\tVERSIONRs Win32-X86i( tSConstUtilt can_read_regtHKEY_LOCAL_MACHINEt RegOpenKeyExt RegEnumKeytRegQueryValueExR tappendtRegError( RtHLMtproductt product_keytitnametname_keyR Rtmwv((s4install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pyRXs*   R cBseZd„Zd„ZRS(cCsś||_||_||_tii|ddƒ|_tii|dƒ|_tii|dƒ}tii|d|ƒ}tii|dƒ|_||g|_||g|_ dS(NsOther Metrowerks ToolssCommand Line ToolstBintMSLs %s Supports license.dat( R RtplatformRRRRRRR(tselfR RR7tmsltsupport((s4install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pyt__init__|s     cCs|iS(N(R (R8((s4install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pyt__str__”s(t__name__t __module__R;R<(((s4install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pyR {s s.cs.Cs.ccs.cpps.cxxs.c++s.C++c Cslddk}ddk}t|ƒ|ii|ƒ\}}x:tD]2}|i||iiƒ|i||ii ƒqAWx:t D]2}|i||ii ƒ|i||ii ƒq~Wd|ds     / #  -