HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python2.7/dist-packages/gyp/__init__.pyc
�
�n�Zc@s<ddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZiZdZ
dZdZd�Zd�Zigdeeeed	�Zd
�Zd�Zd�Zd
�Zd�Zdejfd��YZd�Zd�Zd�Ze dkr8ej!e��ndS(i����N(tGypErrortgeneralt	variablestincludescGs�dtjks|tjkr�d	}y-tjdd�}|rP|dd }nWnnX|rn||;}nd|j�tjj|d�|d|d|fGHndS(
Ntalltunknownitlimitiis%s:%s:%d:%s %si(RiR(tgyptdebugt	tracebackt
extract_stacktuppertostpathtbasename(tmodetmessagetargstctxtf((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytDebugOutputs
cCsUd}tjtj��}g}x-|D]%}|j|�r(|j|�q(q(W|S(Ns.gyp(Rtlistdirtgetcwdtendswithtappend(t	extensiontfilestbuild_filestfile((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytFindBuildFiles(s
t.c	CsN|dkri}nd|kr@|jdd�\}|d<ntj|�}||d<|jdd�|d<|jd�r�tjj|�d}	tjj|	�\}
}	tjj|
�}
|
t	jkr�t	jj
d|
�q�n
d	|}	t|	t�t
�|	�}x-|jj�D]\}}
|j||
�qWt|d
d�r`|j||�nt|dd�r�|j|�nit|dg�d
6t|dg�d6t|dg�d6t|dt�d6t|dt�d6t|dt�d6t|dd�d6}tjj|||||||||d|d�
}|g|S(s�
  Loads one or more specified build files.
  default_variables and includes will be copied before use.
  Returns the generator for the specified format and the
  data returned by loading the specified build files.
  t-itflavort	GENERATORttGENERATOR_FLAVORs.pyisgyp.generator.tCalculateVariablestCalculateGeneratorInputInfot+generator_additional_non_configuration_keystnon_configuration_keyst"generator_additional_path_sectionst
path_sectionst!generator_extra_sources_for_rulestextra_sources_for_rulest$generator_supports_multiple_toolsetst4generator_wants_static_library_dependencies_adjustedt#generator_wants_sorted_dependenciestgenerator_filelist_pathstparalleltroot_targetsN(tNonetsplittcopytgetRRR
tsplitexttabspathtsystinsertt
__import__tglobalstlocalstgenerator_default_variablestitemst
setdefaulttgetattrR$R%tFalsetTrueRtinputtLoad(Rtformattdefault_variablesRtdepthtparamstchecktcircular_checktduplicate_basename_checktgenerator_nameR
t	generatortkeytvaltgenerator_input_infotresult((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyRD2sF		


cCs�i}x�|D]{}|jdd�}t|�dkrzyt|d�}Wntk
rh|d}nX|||d<q
t||d<q
W|S(s�
  Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
  of the pairs.  If a string is simply NAME, then the value in the dictionary
  is set to True.  If VALUE can be converted to an integer, it is.
  t=iii(R3tlentintt
ValueErrorRB(tname_value_listRQtitemttokensttoken_value((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytNameValueListToDict�s

cCs1tjj|g�}|r-tj|�}n|S(N(RtenvironR5tshlexR3(tenv_nametflags((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytShlexEnv�scCs%|jd�rd||fS||S(Ns--s%s=%s(t
startswith(topttvalue((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyt	FormatOpt�scCs�g}|jrm|rmxUt|�D]D}t|||��}||krY|j|�n|j|�q"Wn|r�x-|D]"}|jt|||���qzWn|S(s�Regenerate a list of command line flags, for an option of action='append'.

  The |env_name|, if given, is checked in the environment and used to generate
  an initial list of options, then the options that were specified on the
  command line (given in |values|) are appended.  This matches the handling of
  environment variables and command line flags where command line flags override
  the environment, while not requiring the environment to be set when the flags
  are used again.
  (tuse_environmentR_RctremoveR(tflagtvaluest	predicateR]toptionsR^t
flag_valueRb((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytRegenerateAppendFlag�s

#cs��fd�}d�}dg}x��jj�D]�\}}|d}t�|�}|ddkrl|po|}|d}	|d}
|	d	kr�|jt||||
���q1|	dkr4|r�|jt|||���q��jr�|
r�t	j
j|
�r�|jt||t	j
j|
����q�q1|	dkr�|	dkrR|se|	dkru|ru|j|�q��jr�|
r�tj
d
|	||
fIJq�q1tj
d|	|fIJq1W|S(s}Given a parsed options object, and taking the environment variables into
  account, returns a list of flags that should regenerate an equivalent options
  object (even in the absence of the environment variables.)

  Any path options will be normalized relative to depth.

  The format flag is not included, as it is assumed the calling generator will
  set that as appropriate.
  cs,tjj|�j�}|s(tjjS|S(N(RtcommontFixIfRelativePathRGRR
tcurdir(R
(Ri(s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytFixPath�s
cSs|S(N((Rb((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytNoop�ss--ignore-environmentRattypeR
tactionR]Rtstoret
store_truetstore_falsesJWarning: environment regeneration unimplemented for %s flag %r env_name %rs9Warning: regeneration unimplemented for action %r flag %rN(RsN(RtRu(t_regeneration_metadatat	iteritemsR@textendRkR2RRcRdRR[R5R8tstderr(RiRoRpR^tnametmetadataRaRbtvalue_predicateRrR]((Ris0/usr/lib/python2.7/dist-packages/gyp/__init__.pytRegenerateFlags�s8
		


!.

tRegeneratableOptionParsercBs#eZd�Zd�Zd�ZRS(cCsi|_tjj|�dS(N(t1_RegeneratableOptionParser__regeneratable_optionstoptparsetOptionParsert__init__(tself((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyR��s	cOs�|jdd
�}d|kr�|jdt�r�|d}|jd�}|dkrbd|d<ni|jd�d6|d6|d6|dd	6|j|<ntjj|||�d
S(s�Add an option to the parser.

    This accepts the same arguments as OptionParser.add_option, plus the
    following:
      regenerate: can be set to False to prevent this option from being included
                  in regeneration.
      env_name: name of environment variable that additional values for this
                option come from.
      type: adds type='path', to tell the regenerator that the values of
            this option need to be made relative to options.depth
    R]tdestt
regenerateRqR
tstringRriRaN(tpopR2RBR5RR�R�t
add_option(R�RtkwR]R�Rq((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyR��s

cGs1tjj||�\}}|j|_||fS(N(R�R�t
parse_argsRRv(R�RRg((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyR�s(t__name__t
__module__R�R�R�(((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyR~�s		c#Cs�	tjjtjd�}t�}d}|j|jdd��|jddddd	d
d�|jddd
ddd
d�|jdddddddddd
d�|jdddddddd	dgd
d�|jddddd	dddd d
d!�|jd"dd#dd$d%d&d
d'�|jd(d)dd*dd	dd+d,t
d
d-�|jd.dd/dd	dgdd0dd1d
d2�|jd3dd4dddddd5d%d&dd6d
d7�|jd8dd9dd:dtd,t
d
d;�|jd<d=dd>dd	dd?d%d&d
d@�|jdAddBdd:dtd,t
d
dC�|jdDddEdd:dtd,t
d
dF�|jdGdddt
d
dH�|jdIdJddKddLd
dM�|jdNddOdddddd5d%d&d
dP�|jdQdRddSdd	ddTd
dU�|j|�\}}|}|j
sd}d}|jrstjjdd�}|rstjj|�}qsn|sdVg}	tjdwkr�|	jdY�nx`|	D]U}
tj|
�}|dkr�tjj|dZ�}tjj|�s�d}q�Pq�q�Wqntjj|j
�}|r>tjj|�r>d}n|js�g}|jrntjjd+g�}n|r�tjd[|�}n|r�||_q�tjd\kr�d]g|_q�tjdxkr�d^g|_q�d_g|_n|jr |jr tjjd6�}|r ||_q n|j|_x|jD]}
d`tj|
<q7Wttjkr�t tda�xtt!|j"j#��D]Z\}}|ddbkr�q�nt$|t%�r�t tdc||�q�t tdd||�q�Wn|s�t&�}n|st'|de||f��n|j(s�x�|D]�}tjj)tjj*|��}|jtjj+�}t,|�}xQt-|d`dfdf�D]9}||dgkr�tjj+j|�|_(Pn||=q�W|j(r&Pq&q&W|j(s�t'dh��q�n|j.s|j(|_.ni}g}|jr+|t/d �7}n|j0rD||j07}nt1|�}ttjkrrt tdi|�ng}|dkr�tjj|dj�}tjj|�r�dk|GH|j|�q�n|j2r�|j3|j2�ng}|jr|t/d1�7}n|j4r||j47}nt1|�}ttjj5�krRt tdl|�nxAt6|j�D]0}i
|dm6|dn6|d/6tj7�do6|dp6tjddq6|dr6|jds6|j8dS6|jdtdL�dt6}t9|||||j(||j:|j;|j<�	\}}}} |j=||| |�|j>rb||dduj5�}!x0|j>D]%}"|"|!krP	t'dv|"��qP	qP	W|j?| |j>|�qbqbWdS(yNis(usage: %s [options ...] [build_file ...]s%ss%progs--buildR�tconfigsRrRthelps0configuration for build after project generations--checkRIRtscheck format of gyp filess--config-dirt
config_dirRsR]tGYP_CONFIG_DIRtdefaults7The location for configuration files like include.gypi.s-ds--debugRtmetavart	DEBUGMODEs�turn on a debugging mode for debugging GYP.  Supported modes are "variables", "includes" and "general" or "all" for all of them.s-DtdefinessVAR=VALtGYP_DEFINESssets variable VAR to value VALs--depthRGtPATHRqR
s1set DEPTH gyp variable to a relative path to PATHs-fs--formattformatstGYP_GENERATORSR�soutput formats to generates-Gtgenerator_flagssFLAG=VALtGYP_GENERATOR_FLAGSssets generator flag FLAG to VALs--generator-outputtgenerator_outputtDIRtGYP_GENERATOR_OUTPUTs$puts generated build files under DIRs--ignore-environmentRdRus.do not read options from environment variabless-Is	--includeRtINCLUDEs)files to include in all loaded .gyp filess--no-circular-checkRJs4don't check for circular relationships between filess--no-duplicate-basename-checkRKs#don't check for duplicate basenamess
--no-parallelsDisable multiprocessings-Ss--suffixtsuffixR"s suffix to add to generated filess--toplevel-dirttoplevel_dirs/directory to use as the root of the source trees-Rs
--root-targetR1tTARGETs-include only TARGET and its deep dependenciestHOMEtcygwintwin32tUSERPROFILEs.gyps[\s,]tdarwintxcodetmsvstmakeisrunning with these options:t_s
  %s: '%s's  %s: %ss

%s: error: no build_filei����tsrcs�Could not automatically locate src directory.  This isa temporary Chromium feature that will be removed.  Use--depth as a workaround.scmdline_default_variables: %ssinclude.gypisUsing overrides found in sgenerator_flags: %sRiRtcwdtbuild_files_argt
gyp_binarythome_dot_gypR0ttarget_archtconfigurationss(Invalid config specified via --build: %s(R�R�(R�R�(@RR
RR8targvR~t	set_usagetreplaceR�R2RARBR�R�RdR[R5t
expandusertplatformRtgetenvtjointexistsR�treR3R�tno_parallelR0RRt
DEBUG_GENERALRtsortedt__dict__R>t
isinstancet
basestringRRRGR7tdirnametsepRStxrangeR�R_R�RZRRxR�tkeystsetRR1RDRIRJRKtGenerateOutputR�tPerformBuild(#Rtmy_nametparsertusageRiR�RthomeR�t	home_varsthome_vartgenerate_formatstg_oRtoptionRbt
build_filetbuild_file_dirtbuild_file_dir_componentstcomponents_lentindextcmdline_default_variablesR�Rtdefault_includet	gen_flagsR�RERHRMt	flat_listttargetstdatat
valid_configstconf((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytgyp_mainsX				
				

"
	
					
				



		cCs=yt|�SWn(tk
r8}tjjd|�dSXdS(Nsgyp: %s
i(R�RR8Rytwrite(Rte((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytmains
cCsttjd�S(Ni(R�R8R�(((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pytscript_main st__main__("R4t	gyp.inputRR�tos.pathRR�R\R8R	t
gyp.commonRRR�tDEBUG_VARIABLEStDEBUG_INCLUDESRRR2RARBRDRZR_RcRkR}R�R~R�R�R�R�texit(((s0/usr/lib/python2.7/dist-packages/gyp/__init__.pyt<module>s:		
Q					2)	�