ó kŒZc@sddlZddlZddlmZmZmZmZmZddlm Z m Z ddl m Z d„Z dejjfd„ƒYZdS(iÿÿÿÿN(tDistutilsExecErrort CompileErrortLibErrort LinkErrortUnknownFileError(t CCompilertgen_preprocess_options(tnewercCstƒS(N(t MSVCCompiler(((sv/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pytget_msvc_compiler!sRcBs;eZdddd„Zdddddd„Zd„ZRS(icCswtj||||ƒg|_d|_tjdkrat|tj j ƒratj j |_ qant |_d|_dS(Ntnt(Rt__init__t_MSVCCompiler__pathstNonet_MSVCCompiler__archtostnamet isinstancet distutilst msvc9compilerRtVERSIONt_MSVCCompiler__versiontFalset initializedtpreprocess_options(tselftverbosetdry_runtforce((sv/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyR 's   c Cs|jtkr|jƒn|jd||ƒ\}}}t||ƒ}dg} d} |dk rƒ| jdƒ|j|ƒ} n|jj ƒ} |dk r«|| d*n|dk rÇ| j |ƒn| j | ƒ| j |ƒ| j|ƒ|j s|dkst ||ƒrGy|j | ƒWqGtk rC} | GHt‚qGXn|dk r}|| dkr}tj| d|ƒq}ndS(Ns-Es-Pis.i(RRt initializet_fix_compile_argsR Rtappendt_get_file_basenametcctsplittextendRRtspawnRRRtrename( Rtsourcet output_filetmacrost include_dirst extra_preargstextra_postargst_tpp_optsRtsource_basenametcpp_argstmsg((sv/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyt preprocess1s4          $  cCs_|dkrdS|jdƒdkr:||jdƒdS||jdƒd|jdƒ!SdS(Nt.iÿÿÿÿs\i(R trfind(Rtfilename((sv/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyR _s  N(t__name__t __module__R R R1R (((sv/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyR%s  ((RRtdistutils.errorsRRRRRtdistutils.ccompilerRRtdistutils.dep_utilRR t msvccompilerR(((sv/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyts  (