σ 3Wc@`sddlmZddlmZddlmZddlmZddlZddlZddlZddlZddl Z ddl m Z ddl m Z dd lmZdd lmZd Zd efd „ƒYZdefd„ƒYZdefd„ƒYZd„ZdS(i(tabsolute_import(tdivision(tprint_function(tunicode_literalsN(t LinkErrori(tIntrospectionBinary(tutils(t CCompileru/* This file is generated, do not edit */ #include #include #include %(gdump_include)s int main(int argc, char **argv) { GError *error = NULL; const char *introspect_dump_prefix = "--introspect-dump="; #if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); #endif %(init_sections)s if (argc != 2 || !g_str_has_prefix (argv[1], introspect_dump_prefix)) { g_printerr ("Usage: %%s --introspect-dump=input,output", argv[0]); exit (1); } if (!dump_irepository (argv[1] + strlen(introspect_dump_prefix), &error)) { g_printerr ("%%s\n", error->message); exit (1); } exit (0); } t CompilerErrorcB`seZRS((t__name__t __module__(((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyRMst LinkerErrorcB`seZRS((R R (((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR Qst DumpCompilercB`sGeZdZd„Zd„Zdd„Zd„Zd„Zd„Z RS(cC`sͺ||_||_||_tƒ|_tjjddƒ|_tjjdƒ|_ dg|_ |j j |j ƒt |jjdƒr|jjj|_n g|_dS(Nu PKG_CONFIGu pkg-configu UNINSTALLED_INTROSPECTION_SRCDIRugio-2.0 gmodule-2.0u linker_exe(t_optionst_get_type_functionst_error_quark_functionsRt _compilertostenvirontgett_pkgconfig_cmdt_uninst_srcdirt _packagestextendtpackagesthasattrtcompilert linker_exet _linker_cmd(tselftoptionstget_type_functionsterror_quark_functions((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyt__init__Ys     c C`s‚tjdddtjƒƒ}tjtjj|dƒƒi}|jdk rmtjj|jddƒ}n$tjjtjjt ƒddƒ}tjj |ƒsΉt d|fƒ‚nt |ƒ}|j ƒ}WdQX||d |jD]3}| r’t} n |jdƒ|jd|ƒqW|jdƒnt|jƒdkrvx&|jD]}|jd|dƒqσW|jdƒt} x>|jD]3}| rDt} n |jdƒ|jd|ƒq/W|jdƒnWdQX|jjjr|jjj} nd} |j|| ƒ} y|j|ƒ} WnHtk r} tjdƒsωtj |ƒnt dt!| ƒƒ‚nXy|j"| | ƒWnHt#k rq} tjdƒsXtj |ƒnt dt!| ƒƒ‚nXt$| g|ƒS(Nuutmp-introspecttdiru.libsu girepositoryugdump.cugobject-introspection-1.0uCouldn't find %ru gdump_includeu u init_sectionsu.cuwiu extern GType u(void); u(GType (*GI_GET_TYPE_FUNCS_[])(void) = { u, u u }; uextern GQuark u,GQuark (*GI_ERROR_QUARK_FUNCS_[])(void) = { u save-tempsu'compilation of temporary binary failed:u$linking of temporary binary failed: (%ttempfiletmkdtempRtgetcwdtmkdirtpathtjoinRtNonetDATADIRtisfilet SystemExittopentreadR t init_sectionst_generate_tempfiletwritet_PROGRAM_TEMPLATEtlenRtTruetFalseRRRt exe_extensiont_compileRRthave_debug_flagtshutiltrmtreetstrt_linkR R(Rttmpdirttpl_argst gdump_patht gdump_filetgdump_contentstc_pathtftfunctfirsttexttbin_pathtintrospection_objte((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pytrunlsn        ucC`s2d|jj|jj|f}tjj||ƒS(Nu%s-%s%s(R tnamespace_nametnamespace_versionRR'R((RR=tsuffixttmpl((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR0Έs cC`sw|jjƒr$|jd|g}n|j|g}tj||jdtjƒ}|jƒ\}}|jdƒj ƒS(Nu --msvc-syntaxtstdoutuascii( Rt check_is_msvcRt subprocesstPopenRtPIPEt communicatetdecodetsplit(Rtflagtcmdtproctoutterr((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyt_run_pkgconfig½s  cG`s4|jdƒ}|jj||jj||jjƒS(Nu--cflags(R\RtcompileR t cpp_includesR/(Rtsourcestpkgconfig_flags((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR7Κs   c C`s>g}tj|jƒ}|r³|j|ƒ|jdƒ|jdƒ|jjra|jdƒn|j|jƒ|jd|gƒtjdkr£|jdƒq³|jdƒn|j j ƒsptj j dd ƒ}x!|j ƒD]}|j|ƒqδWtj j d d ƒ}x!|j ƒD]}|j|ƒqWtj j d d ƒ} x$| j ƒD]} |j| ƒqVWnx6|D].} tjj| ƒswtd | fƒ‚qwqwW|rΏ|j|ƒn|jd ƒ} |jjs|j j|||jj|jjƒ|j| ƒn)|j| ƒ|j j|||jjƒ|sίy|j j|||ƒWq:tk rΫ} |j j ƒrΜt| ƒ}||jdƒdkr½tjdkrΙtjƒqΙqΨt| ƒ‚qάt| ƒ‚q:Xn[|jjstdtj |ƒfƒtj!j"ƒntj j ddƒ}|rζtj j ddƒ}t$j%ƒ\}}tj&|dƒQ}dj'g|D]}|j(ddƒ^qyƒ}dj)|ƒ}|j*|ƒWdQXtj+|ƒ}||j(ddƒg}nz:ytj,|ƒWn"tj-k r} t.| ƒ‚nXWd|r9tj/|ƒnXdS(Nu --mode=linku--tag=CCu--silentu-ountu-Wl,--export-all-symbolsu-export-dynamicuCPPFLAGSuuCFLAGSuLDFLAGSuCould not find object file: %su--libsumt.exeu"mt.exe' failed with exit status 31iiug-ir-scanner: link: %suMSYSTEMuSHELLush.exeuwbu u\u/u#!/bin/sh unset PWD {} (ii(0Rtget_libtool_commandR RtappendtquietRRtnameRRPRRRVR'texistsRR\texternal_librarytget_internal_link_flagst librariest library_pathstget_external_link_flagstlinkRR;trfindtsyst version_infot exc_cleartprintRQt list2cmdlineROtflushR)R#tmkstemptfdopenR(treplacetformatR1twhicht check_calltCalledProcessErrorR tremove(RtoutputR_targstlibtooltcppflagstcppflagtcflagstcflagtldflagstldflagtsourcetpkg_config_libsRItmsgtmsystshellttfttf_nameRCtxt shellcontentst fcontents((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR<Ρs–                 .N( R R R)RR!RJR0R\R7R<(((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR Us  L  cC`st|||ƒ}|jƒS(N(R RJ(RRR tdc((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pytcompile_introspection_binaryEs(t __future__RRRRRRmRQR9R#tdistutils.errorsRt gdumpparserRtRt ccompilerRR2t ExceptionRR tobjectR R(((sp/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyts"     &π