;ò š®×Bc@sædkZdkZdkZdkZhdd<dd<dd<dd<d d <d d <d d<dd<dd<dd<dd<dd<dd<dd<dd<dd <d!d <d"d<d#d$<d%d&d?<d@d<dAd<dBdC<dDdE<dFd*<dGdH<dId<dJd0<dKd<dLd<dMd<dNd<dOd<dPd<dQd<dRd<dSd<dTd<dUd<dVd<dWd?<dXd<dYd<dZd<d[d\<d]d<d^d<d_d`<dad`<dbd<dcdd<dedf<dgd<dhd<did<djd<dkd<dld<dmdn<dod<dpd<dqd<drd<dsd<dtdu<dvdu<dwd<dxdy<dzd<d{d<d|d}<d~d<dd<d€d<d‚d<dƒd„<d…d†<d‡d<dˆd‰<dŠd‹<dŒd<dŽd<dd‘<d’d“<d”dThe target uses Qt but SIP was built with Qt support disabled.iisDEFINESisINCDIRsLIBDIRisLIBSsMAKEFILE_GENERATORsUNIXswin32scopysdelsmkdirs if not existscp -fsrm -fsmkdir -pstest -dsCOPYsDEL_FILEsMKDIRsCHK_DIR_EXISTSN(9sqts configurations qt_versionserrorsselfsconfigsconsoles_qtsopengls_openglspythons_pythonsdebugs_debugsdirs_dirsmakefiles _makefilesinstallss _installss _finaliseds qt_threadeds _threadedsthreadedswarningssNones sip_versions _warningss_default_macrosskeyssmsgetattrsvalsAttributeErrorsstringssplits_Macros__dict__soptional_strings generators extra_cflagssextra_cxxflagss extra_definessextra_include_dirss extra_lflagssextra_lib_dirss extra_libsssyssplatformsdef_copysdef_rms def_mkdirsdef_chk_dir_existsscopysrmsmkdirschkdir(sselfs configurationsconsolesqtsopenglspythonsthreadedswarningssdebugsdirsmakefilesinstallssvalsdef_copysdef_rms def_mkdirsdef_chk_dir_existssm((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys__init__sj                 $        c!Cs› |ioIti|iiƒ} d| j}d| j}d| j} d| j}nd}d}d} d}t ƒ}|i |iƒ|i |idƒƒt ƒ}|i |iƒ|i |idƒƒt ƒ}|i |iƒ|i |id ƒƒt d gƒ}|i |iƒ|i |id ƒƒt ƒ}|i |iƒ|i |id ƒƒt ƒ} | i |iƒ| i |id ƒƒg}xK|iD]@}|i|i|ƒƒ|io|i |i|ƒƒq›q›W|i |idƒƒt ƒ}xD|iD]9}t!i"i#|ƒdd dfjo|i|ƒqqW|i$o|i|ii%ƒt&i'djoé| i|ii(ƒd|ii)d?|ii)d?d@f}|i+djoR|d}t!i"i-|ii(|i|ƒƒ}t!i/|t!i0ƒo |}qn|i1o(|d}|idƒ|idƒn|i|i|ƒƒq_n|i+dddfjoñ|od}d}n d}d}|i |i|ƒƒ|i |i|ƒƒ| od }d!} n d"}d#} |i |i|ƒƒ|i |i| ƒƒ|od$}d%}n d&}d'}|i |i|ƒƒ|i |i|ƒƒn|i1o9|od(}d)} n d*}d+} d,}d-}d.}n6|od/}d0} n d1}d2} d3}d4}d5}|i+dddfjox|i=o0|i |i|ƒƒ|i |i| ƒƒn|i>o0|i |id6ƒƒ|i |id7ƒƒqrn|i |i|ƒƒ|i |i|ƒƒ|i |i|ƒƒ|i?od8}d9} n d:}d;} |i |i|ƒƒ|i |i| ƒƒ|i=oF|i |id<ƒƒ|i |id=ƒƒ|i |id>ƒƒn|io.|i+d?jo|o|id@ƒn|i1 o|idAƒn|i=o|idBƒn|i |idCƒƒ|idDƒ}| i |ƒ|i |ƒ|iiC}|i+dddfjo|oJ|tiDtE|iiFƒd dƒ}|iiGdEjo|dF}qtn|i|i|ƒƒn|iHo\|i |idGƒƒ|i |idHƒƒ| i |idIƒƒ|i |idJƒƒn|ip|iHoF|i |idKƒƒ| i |idLƒƒ|i |idMƒƒn|i=o0|i |idNƒƒ|i |idOƒƒn|i |idPƒƒ|i>o|i |idQƒƒn|i |idRƒƒ|io |i |i|iiCƒƒn|i |iI|iJƒƒƒ|iKiL|ƒ|iMiL|ƒ|iNiL|ƒ|iOiL|ƒ|iPiL|ƒ|iQiL| ƒ|iRiL|ƒd|_SdSS(TsbFinalise the macros by doing any consolidation that isn't specific to a Makefile. sshareds exceptionssrttisstliisCFLAGSsCXXFLAGSsDEFINESs.sINCDIRsLFLAGSsLIBDIRsLIBSss..swin32s python%u%uiiiÿsBMAKEs_bcpps_ds/D_DEBUGsMSVCsMSVC.NETsCFLAGS_EXCEPTIONS_ONsCXXFLAGS_EXCEPTIONS_ONsCFLAGS_EXCEPTIONS_OFFsCXXFLAGS_EXCEPTIONS_OFFsCFLAGS_RTTI_ONsCXXFLAGS_RTTI_ONsCFLAGS_RTTI_OFFsCXXFLAGS_RTTI_OFFs CFLAGS_STL_ONsCXXFLAGS_STL_ONsCFLAGS_STL_OFFsCXXFLAGS_STL_OFFsCFLAGS_MT_DLLDBGsCXXFLAGS_MT_DLLDBGs CFLAGS_MT_DBGsCXXFLAGS_MT_DBGs CFLAGS_DEBUGsCXXFLAGS_DEBUGs LFLAGS_DEBUGs CFLAGS_MT_DLLsCXXFLAGS_MT_DLLs CFLAGS_MTs CXXFLAGS_MTsCFLAGS_RELEASEsCXXFLAGS_RELEASEsLFLAGS_RELEASEsCFLAGS_CONSOLEsCXXFLAGS_CONSOLEsCFLAGS_WARN_ONsCXXFLAGS_WARN_ONsCFLAGS_WARN_OFFsCXXFLAGS_WARN_OFFs CFLAGS_THREADsCXXFLAGS_THREADs LFLAGS_THREADsUNIXsQT_DLLs QT_NO_DEBUGsQT_THREAD_SUPPORTs INCDIR_QTs LIBDIR_QTsnon-commercialsncs INCDIR_OPENGLs LFLAGS_OPENGLs LIBDIR_OPENGLs LIBS_OPENGLs INCDIR_X11s LIBDIR_X11sLIBS_X11s LIBS_THREADs LIBS_RTMTsLIBS_RTs LIBS_CONSOLEs LIBS_WINDOWSN(Tsselfs_qtsstringssplitsconfigs qt_winconfigswcfgs win_sharedswin_exceptionsswin_rttiswin_stls _UniqueListscflagssextends extra_cflagss optional_listscxxflagssextra_cxxflagssdefiness extra_definessincdirsextra_include_dirsslflagss extra_lflagsslibdirsextra_lib_dirsslibss extra_libsslsappends platform_libs_dependent_libssrpathssosspathsdirnames_pythons py_inc_dirssyssplatforms py_lib_dirs py_versionspy_libs generatorsbpy_libsjoins bpy_lib_pathsaccesssF_OKs_debugscflags_exceptionsscxxflags_exceptionss cflags_rttis cxxflags_rttis cflags_stls cxxflags_stls cflags_mts cxxflags_mts cflags_debugscxxflags_debugs lflags_debugs _threadedsconsoles _warningss cflags_warns cxxflags_warns libdir_qtsqt_libsreplacesversion_to_strings qt_versions qt_editions_opengls_platform_rpathssas_listsCFLAGSssetsCXXFLAGSsDEFINESsINCDIRsLFLAGSsLIBDIRsLIBSs _finalised(!sselfscxxflags_debugswin_stls cflags_stls libdir_qts cflags_warnsrpathss cflags_debugsdefinesswin_rttis cxxflags_warns cxxflags_mtslibdirs cxxflags_rttis win_sharedscflagssqt_libspy_libs cflags_mtswin_exceptionss bpy_lib_pathscxxflags_exceptionsscflags_exceptionss cflags_rttiscxxflagsslibss lflags_debugsincdirs cxxflags_stlslsbpy_libslflagsswcfg((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysfinaliseos@             " ( $                      %     cCs|i|iƒSdS(s]Return an optional Makefile macro as a list. name is the name of the macro. N(sselfs__dict__snamesas_list(sselfsname((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys optional_list\sscCs2ti|i|ƒƒ}| o |}n|SdS(s„Return an optional Makefile macro as a string. name is the name of the macro. default is the default value N(sstringsjoinsselfs optional_listsnamesssdefault(sselfsnamesdefaultss((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysoptional_stringcs  cCs0|i|ƒ}| otd|‚n|SdS(s^Return a required Makefile macro as a string. name is the name of the macro. s "%s" must have a non-empty valueN(sselfsoptional_stringsnamesss ValueError(sselfsnamess((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysrequired_stringps cCsPg}|idƒ}|o,x)|D]}|it||ƒƒq#Wn|SdS(sjReturn a list of platform specific rpath flags. rpaths is the cannonical list of rpaths. sRPATHN(sflagssselfsoptional_stringsprefixsrpathssrsappends_quote(sselfsrpathssprefixsrsflags((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys_platform_rpaths|scCs9|idddfjo|d}n d|}|SdS(soReturn a library name in platform specific form. clib is the library name in cannonical form. sMSVCsMSVC.NETsBMAKEs.libs-lN(sselfs generatorsclibsplib(sselfsclibsplib((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys platform_libŠs  cCswg}|idddfjo#tii|ii|dƒ}n$tii|iid|dƒ}ti |ti ƒoôyt |dƒ}Wn)tj o}td||fƒnX|iƒ}x˜|oti|ƒ}|o|dd joYti|d ƒ}|djoti|| ƒd joti||d ƒ}PqPn|iƒ}qÉW|iƒn|Sd S(s¬Return a list of additional libraries (in platform specific form) that must be linked with a library. clib is the library name in cannonical form. sMSVCsMSVC.NETsBMAKEs.prlslibsrsUnable to open "%s": %sis#s=sQMAKE_PRL_LIBSiN(sprl_libssselfs generatorsosspathsjoinsconfigs qt_lib_dirsclibsprl_namesaccesssF_OKsopensfsIOErrorsdetailserrorsreadlineslinesstringsstripsfindseqssplitsclose(sselfsclibseqsfsdetailsprl_namesprl_libssline((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys_dependent_libs–s,## ' cCsët|ƒtijod}|}n=|ioti i |i|ƒ}n|}h}yt |dƒ}Wn)t j o}td||fƒnXd}|iƒ}x¬|o¤ti|ƒ}|o|ddjocti|dƒ}|djotd||fƒnti||dƒ|ti|| ƒ|id ƒ}| o|id ƒ}n|i i|ƒnH|i i|id ƒƒ|id ƒ}|o|i i|d ƒn|i i|i|ƒƒtid jo|i idƒnti|ƒ|i ob|idjo|i i djo|i id|iƒqÓ|idƒo,|idƒdjo€|i i djoSd|i ig}|io2|idƒ|idƒ|id|iƒqQq×dd|i ig}nƒ|i i djoVdd|i ig}|io2|idƒ|idƒ|id|iƒq×nddd|i ig}|i i|ƒqÓ|io°tid d jo|i id!|igƒq¥tid d"jo|i id#|igƒq¥tid d$jo|idƒdjo|i id%|igƒq¥n|id&ƒ}|o|ii|ƒqÓnd'S((s<Finalise the macros common to all module Makefiles. sLFLAGS_CONSOLEsLFLAGS_WINDOWSsSIP_STATIC_MODULEs CFLAGS_SHLIBsCXXFLAGS_SHLIBsLFLAGS_CONSOLE_DLLsLFLAGS_WINDOWS_DLLis LFLAGS_PLUGINs LFLAGS_SHLIBs LFLAGS_SONAMEs $(TARGET)sdarwins-framework PythonsMINGWs-Wl,--out-implib,%s.as AIX_SHLIBsLINKsg++s-Wl,-bI:%s/python.exps-Wl,-bnoexpalls -Wl,-bnoentrys-Wl,-bE:%s.exps-Wl,-Gs -qmkshrobjs-bI:%s/python.exps -bnoexpalls -bnoentrys -bE:%s.exps-Gislinuxs-Wl,--version-script=%s.expshp-uxs -Wl,+e,init%ssirixs-Wl,-exported_symbol,init%ss LINK_SHLIBN(sselfsstaticsconsoleslflags_consolesDEFINESsappendsCFLAGSsextends optional_listsCXXFLAGSsconfigs sip_versions lflags_pluginsLFLAGSsoptional_stringssonamessyssplatformsMakefilesfinalises generators_targetsrequired_strings py_lib_dirs aix_lflagss _export_inits link_shlibsLINKsset(sselfssonames aix_lflagss lflags_pluginslflags_consoles link_shlib((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysfinalise[sl       #       *"cCsˆ|iidjo td‚n|djo,|d}tidjo|d}qYn|iddd fjod |}n|Sd S( s»Return the name of a SIP v3.x module when it is used as a library. This will raise an exception when used with SIP v4.x modules. mname is the name of the module. is.module_as_lib() can only be used with SIP v3.xssipscswin32smodulesMSVCsMSVC.NETsBMAKEslibN(sselfsconfigs sip_versions ValueErrorsmnamessyssplatforms generator(sselfsmname((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys module_as_libÁs   cCsœ|io$tidjo d}qd}nbtidjo d}nHtidjo d}n.|idƒ}| o|iddƒ}n|id |id |ƒ|id |i d ƒ|id |i d|i dfƒ|idƒ|io‰|i dddfjo|id|i dƒƒqˆ|id|i dƒƒ|idƒ|_ |i o|id|i ƒqˆnt i||ƒdS(sUGenerate the macros and rules generation. mfile is the file object. swin32slibsaspydsdarwinssosEXTENSION_PLUGINsEXTENSION_SHLIBs TARGET = %s s.s OFILES = %s sobjectssHFILES = %s %s sheaderss moc_headerss sMSVCsMSVC.NETsBMAKEs LIB = %s sLIBsAR = %s sARsRANLIBs RANLIB = %s N(sselfsstaticssyssplatformsextsoptional_stringsmfileswrites_targets_builds generatorsrequired_strings_ranlibsMakefilesgenerate_macros_and_rules(sselfsmfilesext((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_macros_and_rulesÖs0     %   c CsB|idƒ|iddfjo`|io+|idƒ|idƒ|idƒq¼|idƒ|idƒ|idƒn:|id joF|iod|id |iƒ|id ƒx/ti|id ƒD]}|id |ƒqÕW|idƒq¼|idƒ|id|i ƒ|idƒ|i d} |i ot ii|i | ƒ} nyt| dƒ}Wn)tj o}td| |fƒnX|idƒ|id|i |i fƒ|iƒnä|io@|id |iƒ|idƒ|io|idƒq¼nš|io‚tid djo!|id|i |i fƒq¯tid djo5|id|i ƒ|id|i |i fƒq¯n|idƒ|id ƒxrti|id!ƒD]Z}t ii|ƒ\}}d"|d#}|id$||fƒ|id%||fƒqàWd&S('sHGenerate the default target. mfile is the file object. s $(TARGET): $(OFILES) sMSVCsMSVC.NETs $(LIB) /OUT:$(TARGET) @<< s $(OFILES) s<< s& $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< s $(OFILES) $(LIBS) sBMAKEs -%s $(TARGET) s $(LIB) $(TARGET) @&&| sobjectss+%s \ s| s $(LINK) @&&| s, $(LFLAGS) $(OFILES) ,$(TARGET),,$(LIBS),%s s.defswsUnable to create "%s": %ssEXPORTS sinit%s=_init%s s $(AR) $(TARGET) $(OFILES) s $(RANLIB) $(TARGET) islinuxs1 @echo '{ global: init%s; local: *; };' > %s.exp isaixs @echo '#!' >%s.exps; \ echo 'init%s' >>%s.exp s2 $(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS) s $(OFILES): $(HFILES) s moc_headerssmoc_s.cpps %s: %s s $(MOC) -o %s %s N(smfileswritesselfs generatorsstaticsrmsstringssplits_buildsofs_targetsdefnames_dirsosspathsjoinsopensdfilesIOErrorsdetailserrorscloses_ranlibs _export_initssyssplatformsmfssplitextsrootsdiscardscpp( sselfsmfilesdfilesofsdiscardsdetailsrootsmfscppsdefname((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_target_defaultüsd                 !%  cCs(|itjo|ii|_n|idƒ|i|d|i|iƒ|ii djo|i oº|i djo!|i||i d|iƒq$|i ddfjo>|i||i d|iƒ|i||i d |iƒq$|i d jo!|i||i d|iƒq$nd S( sHGenerate the install target. mfile is the file object. s install: $(TARGET) s $(TARGET)isMINGWs.asMSVCsMSVC.NETs.libs.expsBMAKEN( sselfs _install_dirsNonesconfigsdefault_mod_dirsmfileswrites install_files_strips sip_versionsstatics generators_target(sselfsmfile((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_target_installEs !!cCsw|idƒ|i||iƒ|io%tid djptid djo!|id|i|i fƒndS(sFGenerate the clean target. mfile is the file object. s clean: islinuxisaixs -%s %s.exp N( smfileswritesselfsclean_build_file_objectss_builds _export_initssyssplatformsrms_target(sselfsmfile((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_target_cleanYs  2( s__name__s __module__s__doc__sNones__init__sfinalises module_as_libsgenerate_macros_and_rulessgenerate_target_defaultsgenerate_target_installsgenerate_target_clean(((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysModuleMakefile's -1 f  & I sSIPModuleMakefilecBstZdZd„ZRS(s?The class that represents a SIP generated module Makefile. cCs¥|iidjok|i o tidjo|iidƒn|ii|ii ƒ|i i|i |i dƒƒƒn|i i|iiƒti|ƒdS(sAFinalise the macros for a SIP generated module Makefile. iswin32sSIP_MAKE_MODULE_DLLssipN(sselfsconfigs sip_versionsstaticssyssplatformsDEFINESsappendsLIBDIRs sip_mod_dirsLIBSs platform_libs module_as_libsINCDIRs sip_inc_dirsModuleMakefilesfinalise(sself((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysfinaliseis&(s__name__s __module__s__doc__sfinalise(((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysSIPModuleMakefilefs sProgramMakefilec BsqtZdZeedddddededed„ Zd„Zd„Zd„Zd„Zd„Z d „Z RS( s2The class that represents a program Makefile. isMakefilec Csati|||||||| | | | | ƒ ||_|o|i|ƒ|_n t|_dS(sInitialise an instance of a program Makefile. build_file is the file containing the target specific information. If it is a dictionary instead then its contents are validated. install_dir is the directory the target will be installed in. N(sMakefiles__init__sselfs configurationsconsolesqtsopenglspythonsthreadedswarningssdebugsdirsmakefilesinstallss install_dirs _install_dirs build_filesparse_build_files_buildsNone(sselfs configurations build_files install_dirsconsolesqtsopenglspythonsthreadedswarningssdebugsdirsmakefilesinstalls((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys__init__{s . c CsÎ|iƒtii|ƒ\}}ti djo|d}ng}|i |i dƒƒx(|i dƒD]}|i d|ƒqlWx.|i dƒD]}|i dt|ƒƒq—W|i|i dƒƒ|id jo|i |ƒn|id d fjo$|i d ƒ|i d ƒd} nL|id jo|i d|ƒd} n!|i dƒ|i |ƒd} x.|i dƒD]}|i | t|ƒƒq„W|i dƒ} |id jo¯g}xœ| D]”}x‹ti|ƒD]z}|ddjod|dd!}n$|ddjod|d}nti|dƒdjo|i |ƒqçqçWqÑW|} n|i| ƒ|i|i dƒƒ|id jo|i |ƒn|ti|ƒfSdS(sºCreate a command line that will build an executable. Returns a tuple of the name of the executable and the command line. source is the name of the source file. swin32s.exesCXXsDEFINESs-DsINCDIRs-IsCXXFLAGSsBMAKEsMSVCsMSVC.NETs-Fes/links /LIBPATH:s-es-Ls-osLIBDIRsLFLAGSiÿÿÿÿs-s-l-iis-liüÿÿÿs.objsLIBSN(sselfsreadysosspathssplitextssourcesexesignoressyssplatformsbuildsappendsrequired_strings optional_listsfs_quotesextends generators libdir_prefixsldslflagssblflagsslfsstringssplitslowersjoin( sselfssourceslfsldsexesfsignoresblflagssbuilds libdir_prefixslflags((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys build_commandŽs`         cCsn|iddfjo|iidƒn|io d}nd}|ii|i|ƒƒti |ƒdS(s4Finalise the macros for a program Makefile. sMSVCsMSVC.NETs/INCREMENTAL:NOsLFLAGS_CONSOLEsLFLAGS_WINDOWSN( sselfs generatorsLFLAGSsappendsconsoleslflags_consolesextends optional_listsMakefilesfinalise(sselfslflags_console((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysfinaliseÜs  cCs¥|i o td‚n|id}tidjo|d}n|id|ƒ|id|idƒ|id|id ƒ|id ƒti ||ƒd S( sUGenerate the macros and rules generation. mfile is the file object. s8pass a filename as build_file when generating a Makefilestargetswin32s.exes TARGET = %s s OFILES = %s sobjectss HFILES = %s sheaderss N( sselfs_builds ValueErrorstargetssyssplatformsmfileswritesMakefilesgenerate_macros_and_rules(sselfsmfilestarget((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_macros_and_rulesës    cCs§|idƒ|iddfjo+|idƒ|idƒ|idƒnI|idjo+|idƒ|id ƒ|id ƒn|id ƒ|id ƒd S(sHGenerate the default target. mfile is the file object. s $(TARGET): $(OFILES) sMSVCsMSVC.NETs& $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< s $(OFILES) $(LIBS) s<< sBMAKEs $(LINK) @&&| s+ $(LFLAGS) $(OFILES) ,$(TARGET),,$(LIBS),, s| s2 $(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS) s $(OFILES): $(HFILES) N(smfileswritesselfs generator(sselfsmfile((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_target_defaultÿs      cCsJ|itjo|ii|_n|idƒ|i|d|iƒdS(sHGenerate the install target. mfile is the file object. s install: $(TARGET) s $(TARGET)N(sselfs _install_dirsNonesconfigsdefault_bin_dirsmfileswrites install_file(sselfsmfile((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_target_installs  cCs$|idƒ|i||iƒdS(sFGenerate the clean target. mfile is the file object. s clean: N(smfileswritesselfsclean_build_file_objectss_build(sselfsmfile((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysgenerate_target_cleans ( s__name__s __module__s__doc__sNones__init__s build_commandsfinalisesgenerate_macros_and_rulessgenerate_target_defaultsgenerate_target_installsgenerate_target_clean(((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysProgramMakefilexs - N    cCs3ti|dƒdjod|d}n|SdS(s^Return a string surrounded by double quotes it if contains a space. s is the string. s is"N(sstringsfindss(ss((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys_quote'scCs)d|d?d@|d?d@|d@fSdS(sTConvert a 3 part version number encoded as a hexadecimal value to a string. s%u.%u.%uiiÿiN(sv(sv((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysversion_to_string2scCs°|tj }|tj } t}t}t|ƒ} | i ƒ}x3|o |p| ot i |ƒ} t| ƒdjo| ddjoÚ|o| d|jo‚| d}|dd!djot i|dƒ}nEt|ƒ}|d} |dd }|d } | d>|d >| }d}n| o| d|jo$t i| dƒdd !}d} qan| i ƒ}q?W| iƒ|p| otd ||fƒn||fSd S(sRead the version information for a package from a file. The information is specified as #defines of a numeric (hexadecimal or decimal) value and/or a string value. filename is the name of the file. description is the descriptive name of the package. numdefine is the name of the #define of the numeric version. It is ignored if it is None. strdefine is the name of the #define of the string version. It is ignored if it is None. Returns a tuple of the version as a number and as a string. iis#defineiis0xiidi iiÿÿÿÿs<The %s version number could not be determined by parsing %s.N(s numdefinesNonesneed_nums strdefinesneed_strsverssversstrsopensfilenamesfsreadlineslsstringssplitswlslensvsatoisintsdecsmajsminsbugsjoinscloseserrors description(sfilenames descriptions numdefines strdefinesvsverssminsneed_numsversstrsneed_strswlsmajsbugsfslsdec((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys read_version9s:     $      s _pkg_configc Cs¶|d}|iƒ}|iƒd}x1|D])}t|ƒ}||jo |}q-q-WxG|D]?}||}t |ƒ}|t jo d}n©|t ijodti|ƒd}n~|t ijod|d}n\|t ijo7ti|dƒdjod|}q<t|ƒ}ndt|ƒd}|d|dd |t|ƒd ti|d d ƒ}||d jo|d}n|d}qaW|d}|SdS(sMConvert a dictionary to a string (typically to use as the content to a call to create_config_module()). Dictionary values that are strings are quoted. Dictionary values that are lists are converted to quoted strings. dict is the dictionary. dictname is the name of the dictionary in the string representation. s = { isNones'sversions0x%06xs 's':s is\s\\iÿÿÿÿs,s s} N(sdictnamescontentsdictskeysssortswidthskslensklensvalstypesvtypesNonestypessListTypesstringsjoins StringTypesIntTypesfindsstrsreplace( sdictsdictnamesvtypesvalskeyssksklenscontentswidth((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pyscreate_contentps>         ; cCs­t|ƒtijot|ƒ}nddd}t|dƒ}t|dƒ}|i ƒ}xH|o@t i||ƒdjo |}n|i|ƒ|i ƒ}qaWdS(shCreate a configuration module by replacing "@" followed by "SIP_CONFIGURATION" followed by "@" in a template file with a content string. module is the name of the module file. template is the name of the template file. content is the content string. If it is a dictionary it is first converted to a string using create_content(). s@sSIP_CONFIGURATIONswsriN(stypescontentstypessDictTypescreate_contentskeysopensmodulesdfstemplatessfsreadlineslinesstringsfindswrite(smodulestemplatescontentskeysdfslinessf((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pyscreate_config_module¦s    cCs•t}|iƒ}|iƒ|djo||d}nSx*|D]"}||jo||}PqBqBW|tjotd||fƒn|SdS(sConvert a version number to a SIP tag. version is the version number. If it is negative then the latest version is assumed. (This is typically useful if a snapshot is indicated by a negative version number.) tags is the dictionary of tags keyed by version number. The tag used is the one with the smallest key (ie. earliest version) that is greater than the given version number. description is the descriptive name of the package used for error messages. Returns the corresponding tag. iiÿÿÿÿsUnsupported %s version: 0x%06x.N( sNonestagstagsskeyssvlssortsversionsvserrors description(sversionstagss descriptionsvlsvstag((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysversion_to_sip_tagÃs        cCs/tiitd|ƒdƒtidƒdS(sWDisplay an error message and terminate. msg is the text of the error message. sError: s iN(ssyssstderrswritesformatsmsgsexit(smsg((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pyserroräscCstiit|ƒdƒdS(sODisplay an information message. msg is the text of the error message. s N(ssyssstdoutswritesformatsmsg(smsg((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysinformísiNcCs±|}d|}x–ti|ƒD]…}t|ƒ}||jo|||jo|dd|}|}n||jo|d}|d}n||}||}q W|SdS(sõFormat a message by inserting line breaks at appropriate places. msg is the text of the message. leftmargin is the position of the left margin. rightmargin is the position of the right margin. Return the formatted message. s s iN( s leftmarginscurssfmsgsstringssplitsmsgswslensls rightmargin(smsgs leftmargins rightmarginscurssfmsgslsw((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pysformatõs      (ssyssossstringstypess _pkg_configs_default_macross _config_stacks Configurations _UniqueLists_MacrosMakefilesParentMakefilesModuleMakefilesSIPModuleMakefilesProgramMakefiles_quotesversion_to_stringsNones read_versionscreate_contentscreate_config_modulesversion_to_sip_tagserrorsinformsformat(sMakefilesProgramMakefiles_default_macrossversion_to_strings ConfigurationsModuleMakefilesstringsformatscreate_contents _pkg_configssyss _UniqueListsSIPModuleMakefilestypesscreate_config_modules_quotes read_versionsversion_to_sip_tagsParentMakefiles_Macrosinformserrorsos((s1/usr/pkg/lib/python2.3/site-packages/sipconfig.pys?s8    ºÿÿüX"$2ÿÿåBÿ@¯ 7 6  !