๓ ฮบg[c@`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__(((sj/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyRNst LinkerErrorcB`seZRS((R R (((sj/home/vagrant/ruby-gnome2/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 ƒ|jj ƒr‘dg|_n!tjtjjddƒƒ|_dS(Nu PKG_CONFIGu pkg-configu UNINSTALLED_INTROSPECTION_SRCDIRugio-2.0 gmodule-2.0ulink.exeuCCucc(t_optionst_get_type_functionst_error_quark_functionsRt _compilertostenvirontgett_pkgconfig_cmdt_uninst_srcdirt _packagestextendtpackagest check_is_msvct _linker_cmdtshlextsplit(tselftoptionstget_type_functionsterror_quark_functions((sj/home/vagrant/ruby-gnome2/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|ƒ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_TEMPLATEtlenRtTruetFalseRRtcompilert exe_extensiont_compileRRthave_debug_flagtshutiltrmtreetstrt_linkR R(Rttmpdirttpl_argst gdump_patht gdump_filetgdump_contentstc_pathtftfunctfirsttexttbin_pathtintrospection_objte((sj/home/vagrant/ruby-gnome2/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((sj/home/vagrant/ruby-gnome2/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( RRRt subprocesstPopenRtPIPEt communicatetdecodeR(Rtflagtcmdtproctoutterr((sj/home/vagrant/ruby-gnome2/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((sj/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR8หs   c C`sฯg}tj|jƒ}|rd|j|ƒ|jdƒ|jdƒ|jjrd|jdƒqdn|j|jƒ|jjƒrš|jd|gƒnK|jd|gƒ|rๅtj ƒdkrี|jdƒqๅ|jdƒn|jjƒscx3t j t j jd d ƒƒD]}|j|ƒqWx6t j t j jd d ƒƒD]}|j|ƒqIWnx6|D].}t jj|ƒsjtd |fƒ‚qjqjW|j|ƒ|jd ƒ}|jjs|jj|||jj|jj|jjƒ|j|ƒn&|j|ƒ|jj||jjƒ|jjƒspx6t j t j jdd ƒƒD]} |j| ƒqVWn|jjsฆtdtj|ƒfƒtjjƒnt j jddƒ} | rwt j jddƒ} t j!ƒ\} } t j"| dƒQ}dj#g|D]}|j$ddƒ^q ƒ}dj%|ƒ}|j&|ƒWdQXtj'| ƒ} | | j$ddƒg}nz:ytj(|ƒWn"tj)k rฏ}t*|ƒ‚nXWd| rสt j+| ƒnXdS(Nu --mode=linku--tag=CCu--silentu-out:u-ountu-Wl,--export-all-symbolsu-export-dynamicuCPPFLAGSuuCFLAGSuCould not find object file: %su--libsuLDFLAGSug-ir-scanner: link: %suMSYSTEMuSHELLush.exeuwbu u\u/u#!/bin/sh unset PWD {} (,Rtget_libtool_commandR RtappendtquietRRRthost_osRRRRRR'texistsRR[texternal_librarytget_internal_link_flagst librariestextra_librariest library_pathstget_external_link_flagstprintRQt list2cmdlinetsysRPtflushR)R#tmkstemptfdopenR(treplacetformatR1twhicht check_calltCalledProcessErrorR tremove(RtoutputR^targstlibtooltcppflagtcflagtsourcetpkg_config_libstldflagtmsystshellttfttf_nameRDtxt shellcontentst fcontentsRJ((sj/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR=าsx    %%        % .N( R R R)RR!RKR0R[R8R=(((sj/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyR Vs  L  cC`st|||ƒ}|jƒS(N(R RK(RRR tdc((sj/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pytcompile_introspection_binary+s(t __future__RRRRRRmRRQR:R#tdistutils.errorsRt gdumpparserRtRt ccompilerRR2t ExceptionRR tobjectR R‡(((sj/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/dumper.pyts$      &ี