ó /ˆÁZc@s²ddlZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ddlmZdefd „ƒYZdS( iÿÿÿÿN(t MSVCCompiler(t UnixCCompiler(tMingw32CCompiler(tcustomize_compileri(tutilst CCompilercBsqeZdZd ZdZejejd d„Z d„Z d„Z d„Z d„Z d„Zd„Zd„ZRS( tcCs:|dkr‹|dkr]|jdƒdksB|jdƒdkrKd}q]tjjƒ}n|dkrš|dkrštd|ƒ‚qšntjjƒ}|dkrÈdd lm}|jƒ|_ ntjj d |ƒ|_ t |j ƒt |j t ƒrT|j jd gkr#g|j _n|j jdkrT|j j d g|j _qTn|jƒríd tjd|D]6}t}d|d|d|d|d|g}xè|D]à}|r Pn|jdƒr%|d}nx±|D]©}|r<Pntjj||ƒ}tjj|ƒr,|jƒrmtjddƒ\}}tj|ƒd|g}tj ||g|dtjƒ}t!|dƒ~}xt|j"ƒjƒD]`} d| kré| jƒ}x?|D]4}|jdƒr| j|ddƒt#}PqqWqéqéWWdQX|jƒtj$|ƒqÕtj||gdtjƒ}|jƒ\} } x4| jdƒjƒD]} | j| ƒt#}Pq´Wq,q,WqùW|s½| j|ƒq½q½Wt| ƒd kr%t%d!d"j| ƒƒ‚n| S(#NR+t;s dumpbin.exes-symbolsiR/RtSHELLssh.exes--mode=executetDLLTOOLs dlltool.exes --identifys-print-search-dirststdouttasciis libraries: s lib%s.dll.aslib%s.as%s.dll.as%s.as%s.libRXitprefixsg-ir-win32-resolve-lib-s-out:trt__IMPORT_DESCRIPTOR_is.dllis4ERROR: can't resolve libraries to shared libraries: s, (&R!R"R#RR`R2R3t version_infotmajorRtget_libtool_commandR1twhichRQt subprocesstPopenR$tPIPEt communicatet library_pathstdecodet splitlinesRatlenR9tFalseR7R&texiststtempfiletmkstemptclosetcalltopentreadtTruetunlinkR(R'R<toptionsR:t libsearchtlibpathtlibR;tproctotetlinetshlibst not_resolvedtfoundt candidatestltctimplibttmp_fdt tmp_filenamet output_flagt tmp_fileobjt line_tokenstitem((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pytresolve_windows_libsýs’   ,( "  '               cCst|jtƒrtStSdS(N(RRRRŽR†(R'((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyR!fsc Cs'g}g}g}x|D]ý}tj|ƒ}|jdƒrW|j|tdƒƒq|jdƒrÎ|tdƒ}|jdƒ}|dkr |} d} n|| } ||d} |j| | fƒq|jdƒrú|j|tdƒfƒq|d kr|j|ƒqqW|||fS(Ns-Is-DRXiÿÿÿÿis-Us-g3s-ggdb3s-gstabs3s-gcoff3s-gxcoff3s-gvms3(s-g3s-ggdb3s-gstabs3s-gcoff3s-gxcoff3s-gvms3(Rtcflag_real_include_pathRaR2R…RbR( R'RRhRMt other_optionsR•toptiontmacrot macro_indext macro_namet macro_value((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyRPms*     N(t__name__t __module__R$RRR%R"R#R1R*RDRERRRcR¥R!RP(((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyR%s B ;   ) i (R"R_R~RˆR3Rtdistutils.msvccompilerRtdistutils.unixccompilerRtdistutils.cygwinccompilerRtdistutils.sysconfigRRRtobjectR(((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyts