³ò ”,9Mc@skdZdZdgZddkZddkZddkZdeifd„ƒYZd„Zhd„Z dS( sÂengine.SCons.Variables.ListVariable This file defines the option type for SCons implementing 'lists'. A 'list' option may either be 'all', 'none' or a list of names separated by comma. After the option has been processed, the option value holds either the named list elements, all list elemens or no list elements at all. Usage example: list_of_libs = Split('x11 gl qt ical') opts = Variables() opts.Add(ListVariable('shared', 'libraries to build as shared libraries', 'all', elems = list_of_libs)) ... for lib in list_of_libs: if lib in env['shared']: env.SharedObject(...) else: env.Object(...) sIsrc/engine/SCons/Variables/ListVariable.py 4629 2010/01/17 22:23:21 sconst ListVariableiÿÿÿÿNt _ListVariablecBs_eZggd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( cCs7tii|td|ƒƒ||_|iiƒdS(N(tUserListt__init__tfiltertNonet allowedElemstsort(tselftinitlistR((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyR@s cCs t‚dS(N(tNotImplementedError(Rtother((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__cmp__EscCs t‚dS(N(R (RR ((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__eq__GscCs t‚dS(N(R (RR ((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__ge__IscCs t‚dS(N(R (RR ((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__gt__KscCs t‚dS(N(R (RR ((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__le__MscCs t‚dS(N(R (RR ((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__lt__OscCsWt|ƒdjodSn|iiƒ|i|ijodSnti|dƒSdS(Nitnonetallt,(tlentdataRRtstringtjoin(R((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt__str__Qs  cCs |iƒS(N(R(R((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pytprepare_to_storeYs( t__name__t __module__RR R RRRRRR(((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyR?s       cCs§|djo g}n„|djo |}nmtdti|dƒƒ}t|d„|ƒ}t|d„|ƒ}|o tdti|dƒƒ‚nt||ƒS(s RRRcSs|i||ƒS((tget(tvtm((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pytescSs ||jS(((RtaE((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyR fssInvalid value(s) for option: %sN(RRRtsplittmapt ValueErrorRR(tvalRtmapdictt notAllowed((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyt _converter\s    cCsvdti|dƒ}tii|ƒoti|dƒ}nti|d|fdƒ}|||d||d„fS(s/ The input parameters describe a 'package list' option, thus they are returned with the correct converter and validater appended. The result is usable for input to opts.Add() . A 'package list' option may either be 'all', 'none' or a list of package names (separated by space). sallowed names: %st Rs((all|none|comma-separated list of names)s cSst|||ƒS((R((R%telemsR((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyR …sN(RRtSConstUtiltis_ListR(tkeythelptdefaulttnamesR#t names_str((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyRts    ( t__doc__t __revision__t__all__RRt SCons.UtilR+RR(R(((sAinstall/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyss