ó ^9õUc@sŠddlZddlZddlZddlZddlmZddlmZddlm Z ddl m Z de fd„ƒYZ dS( iÿÿÿÿN(t MSVCCompiler(tMingw32CCompiler(tcustomize_compileri(tutilst CCompilercBsAeZdZdZdZdd„Zd„Zd„Zd„Z RS(tcCsdS(N((tselft compiler_name((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyt__init__'sc Csq|dkr|jdƒn|s€|rp|rS|jtj|ƒd|dƒq}|jtj|ƒdƒq€|jdƒn| r£|dkr£|jdƒnxM|D]E}|dkrª|jdƒrÛ|j|ƒqï|jd|ƒqªqªWxw|D]o} |dkrú|jd | ƒtjj| ƒri|rR|jd ƒ|j| ƒqf|jd | ƒqiqúqúWdS( NRs-L.t-s.libs -Wl,-rpath=.s-Wl,--no-as-neededs.las-ls-Ls-rpaths -Wl,-rpath=(tappendtstrtlowertendswithtostpathtisabs( Rtargstlibtoolt librariestlibpathstpkgconfig_msvc_flagstnst ns_versiontlibraryt library_path((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pytget_internal_link_flags*s0      cCsTxM|D]E}|dkr|jdƒr8|j|ƒqL|jd|ƒqqWdS(NRs.las-l(R R (RRRRR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pytget_external_link_flagses   cCs8g}tjjddƒ}g}d|ks9d|kr}t}tjjdƒ}|jdƒ}|jdƒ|jdƒnât}tj|ƒ}|rÚ|jtj tjjd d ƒƒƒ|j |ƒ|jd ƒn|j d d gƒt j |dgdt j ƒ} | jƒ\} } x?| jƒD]1} | jdƒr*| tdƒjdƒ}q*q*Wg} g}x˜|D]}t}d|d|d|d|d|g}xB|D]:}|r¾Pn|jdƒrÚ|d}nx |D]}|rñPntjj||ƒ}tjj|ƒrát j ||gdt j ƒ} | jƒ\} } x˜| jƒD]‡} |rÉd| kr¼| jƒ}x?|D]4}|jdƒr| j|ddƒt}PqqWn|rÝPqÝqV| j| ƒt}PqVWqáqáWq®W|sr|j|ƒqrqrWt|ƒdkr4tddj|ƒƒ‚n| S(NtCCtccscl.exetcltLIBt;s dumpbin.exes-symbolstSHELLssh.exes--mode=executes dlltool.exes --identifys-print-search-dirststdouts libraries: s lib%s.dll.aslib%s.as%s.dll.as%s.as%s.libt=it__IMPORT_DESCRIPTOR_is.dllis4ERROR: can't resolve libraries to shared libraries: s, (RtenvirontgettTruetsplitR tFalseRtget_libtool_commandtwhichtextendt subprocesstPopentPIPEt communicatet splitlinest startswithtlenRtjointexistst SystemExit(RRtoptionsRt compiler_cmdt libsearchtis_msvctlibpathRtproctotetlinetshlibst not_resolvedtlibtfoundt candidatestltctimplibt line_tokenstitem((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pytresolve_windows_libsss‚ %              N( t__name__t __module__R8tNonetcompilert_cflags_no_deprecation_warningsRRRRJ(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyR!s  ; (RR-tsyst distutilstdistutils.msvccompilerRtdistutils.cygwinccompilerRtdistutils.sysconfigRRRtobjectR(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyts