ó ZYc@`sddlmZddlmZddlmZddlmZddlZddlZddlZddlZddl Z ddl Z ddl m Z ddl mZdd 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.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyRNst LinkerErrorcB`seZRS((R R (((sp/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR Rst 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.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyt__init__Zs     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|ƒqW|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.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pytrunmsn        ucC`s2d|jj|jj|f}tjj||ƒS(Nu%s-%s%s(R tnamespace_nametnamespace_versionRR'R((RR=tsuffixttmpl((sp/home/vagrant/ruby-gnome2.win64/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.win64/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.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR7Ës   c C`sPg}tj|jƒ}|r³|j|ƒ|jdƒ|jdƒ|jjra|jdƒn|j|jƒ|jd|gƒtjdkr£|jdƒq³|jdƒn|j j ƒs1x3t j tj jdd ƒƒD]}|j|ƒqáWx6t j tj jd d ƒƒD]}|j|ƒqWnx6|D].}tjj|ƒs8td |fƒ‚q8q8W|r€|j|ƒn|jd ƒ}|jjsÙ|j j|||jj|jj|jjƒ|j|ƒn)|j|ƒ|j j|||jjƒ|j j ƒsJx6t j tj jd d ƒƒD]} |j| ƒq0Wn|sñy|j j|||ƒWqLtk rí} |j j ƒrÞt| ƒ} | | jdƒdkrÏtjdkrÛtjƒqÛqêt| ƒ‚qît| ƒ‚qLXn[|jjs't dt!j"|ƒfƒtj#j$ƒntj jddƒ} | røtj jddƒ} t&j'ƒ\}}tj(|dƒQ}dj)g|D]}|j*ddƒ^q‹ƒ}dj+|ƒ}|j,|ƒWdQXtj-| ƒ} | |j*ddƒg}nz:yt!j.|ƒWn"t!j/k r0} t0| ƒ‚nXWd| rKtj1|ƒnXdS(Nu --mode=linku--tag=CCu--silentu-ountu-Wl,--export-all-symbolsu-export-dynamicuCPPFLAGSuuCFLAGSuCould not find object file: %su--libsuLDFLAGSumt.exeu"mt.exe' failed with exit status 31iiug-ir-scanner: link: %suMSYSTEMuSHELLush.exeuwbu u\u/u#!/bin/sh unset PWD {} (ii(2Rtget_libtool_commandR RtappendtquietRRtnameRRPtshlexRVRRR'texistsRR\texternal_librarytget_internal_link_flagst librariestextra_librariest library_pathstget_external_link_flagstlinkRR;trfindtsyst version_infot exc_cleartprintRQt list2cmdlineROtflushR)R#tmkstemptfdopenR(treplacetformatR1twhicht check_calltCalledProcessErrorR tremove(RtoutputR_targstlibtooltcppflagtcflagtsourcetpkg_config_libstldflagRItmsgtmsystshellttfttf_nameRCtxt shellcontentst fcontents((sp/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR<Òs”    %%         %     .N( R R R)RR!RJR0R\R7R<(((sp/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR Vs  L  cC`st|||ƒ}|jƒS(N(R RJ(RRR tdc((sp/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pytcompile_introspection_binaryFs(t __future__RRRRRRoReRQR9R#tdistutils.errorsRt gdumpparserRtRt ccompilerRR2t ExceptionRR tobjectR RŽ(((sp/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyts$      &ð