Ñò rê$Lc @sÓdZdZddkZddkZddkZddkZddkZddk Zddk Zddk Zei i ddƒZ d„ZeidƒZd„Zd „Zd „Zd „Zd „Zd „ZdS(sÓSCons.Tool.swig Tool-specific initialization for swig. 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/swig.py 5023 2010/06/14 22:05:46 sconsiÿÿÿÿNs$SWIGCOMs $SWIGCOMSTRcCs5dtii|idd|ƒƒjodSdSdS(Ns-c++s $SWIGFLAGStsources$SWIGCXXFILESUFFIXs$SWIGCFILESUFFIX(tSConstUtiltCLVartsubst(tenvR((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pytswigSuffixEmitter0s(s %module(\s*\(.*\))?\s+("?)(.+)\2cCs°d}g}ytit|ƒiƒƒ}Wn6tj o*g}|itii|ƒdƒnXx?|D]7}|i|dƒ|p|di dƒdj}qkW||fS(sìFind all modules referenced by %module lines in `src`, a SWIG .i file. Returns a list of all modules, and a flag set if SWIG directors have been requested (SWIG will generate an additional header file in this case.)iit directors( t _reModuletfindalltopentreadtIOErrortappendtostpathtsplitexttfind(tsrcRtmnamestmatchestm((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pyt _find_modules:s"$c Cs€|i|dƒ}xf|D]]}|i}|i}|t|ƒ |jo-|i|i|t|ƒ |dƒƒqqWdS(NtSWIGCXXFILESUFFIXtSWIGDIRECTORSUFFIX(RtnametdirtlenR tFile(ttargetRtsuffixtxtntd((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pyt_add_director_header_targetsMs  cCs¹|idd|d|ƒ}tii|ƒ}x|D]w}t|iƒƒ}d}d|jod|jo|djot|ƒ\}}n|ot||ƒng}|D]} || dq²~} |idd|d|ƒ} | o@g} | D](} | |i i t i i | | ƒƒqù~ } n2g}| D]} ||dii | ƒq9~} |i| ƒnd |jo.|djot|ƒ\}}n|ot||ƒng}|D]} || d | d gqÃ~}tii|ƒ}|idd|d|ƒ} | o4g}|D]} |t i i | | ƒq&~}ntt|i i |ƒƒ}x-|D]%}d „}tii||d ƒqqW|i|ƒq4q4W||fS(Ns $SWIGFLAGSRRs-pythons-noproxys.pys $SWIGOUTDIRis-javas.javasJNI.javacSs|iS((R(tttptsR((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pytxsttarget_from_source(RRRRtstrtrfiletNoneRR"tfsRRRtjoinRtextendtflattentlisttmapt AddMethod(RRRt swigflagstflagsRRRt_[1]Rt python_filestoutdirt_[2]tjt_[3]t_[4]t java_filest_[5]tjftt_from_s((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pyt _swigEmitterXsD %@1  /4 c CsŒtii||ddgdddddtiƒ}|iƒdjodS|iiƒ}ti d |ti ƒ}|o|i d ƒSdS( sCRun the SWIG command line tool to get and return the version numbertSWIGs-versiontstdintdevnulltstderrtstdoutiNsSWIG Version\s+(\S+)$i( RtActiont_subproct subprocesstPIPEtwaitRDR tretsearcht MULTILINEtgroup(Rtpipetouttmatch((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pyt_get_swig_version}s cCsptii|ƒ\}}t|id\s"]+)(?:>|"?)tSWIGScantSCANNERSN(RtTooltcreateCFileBuildersRRt add_actiont SwigActiont add_emitterR?tCreateJavaFileBuilderRQRRtScannert ClassicCPPtAppend(Rtc_filetcxx_filet java_filetexprtscanner((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pytgenerateŠs4             cCs|idgƒS(NRR(tDetect(R((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pytexists¯s(t__doc__t __revision__tos.pathRRJRGt SCons.ActionRtSCons.Defaultst SCons.Scannert SCons.Toolt SCons.UtilRERbRtcompileRRR"R?RQRmRo(((s2install/lib/scons-2.0.0.final.0/SCons/Tool/swig.pyt s$           % %