HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991111/root/usr/lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //proc/1991111/root/usr/lib/python3/dist-packages/gyp/__pycache__/__init__.cpython-311.pyc
�

�"KbW��H�ddlmZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlm
Z
	en
#e$reZYnwxYwiZdZdZdZd�Zd�Zigd	dd
ddfd�Zd
�Zd�Zd�Zd�Zd�ZGd�dej��Zd�Zd�Z d�Z!e"dkre
j#e!����dSdS)�)�print_functionN)�GypError�general�	variables�includesc�d�dtjvs|tjvr�d}	tjd���}|r|ddd�}n#YnxYw|r||z}t	d|���tj�|d��|d|d|fz��dSdS)	N�all)�unknownrr
�)�limitr�z%s:%s:%d:%s %s�)	�gyp�debug�	traceback�
extract_stack�print�upper�os�path�basename)�mode�message�args�ctx�fs     �./usr/lib/python3/dist-packages/gyp/__init__.py�DebugOutputr!s���
�c�i���4�3�9�,�,�
#�C��
�
!��
*�
*�
*�a�	
����d�2�A�2�h�����
�d������
��o�g�	�
�d�j�j�l�l�B�G�,<�,<�S��V�,D�,D�!�!�f�c�!�f�g�7�7�8�8�8�8�8�-�,s�'A�Ac��d}tjtj����}g}|D],}|�|��r|�|���-|S)N�.gyp)r�listdir�getcwd�endswith�append)�	extension�files�build_files�files    r�FindBuildFilesr)/s_���)�
�*�R�Y�[�[�
!�
!�%��+����d��}�}�Y������������	���.FTc	
���|�i}d|vr|�dd��\}|d<tj|��}||d<|�dd��|d<|�d��r�tj�|��d	}	tj�|	��\}
}	tj�|
��}
|
tjvr tj�	d	|
��nd
|z}	t|	t��t��|	��}|j
���D]\}}
|�||
���t!|dd��r|�||��t!|dd��r|�|��t!|d
g��t!|dg��t!|dg��t!|dd��t!|dd��t!|dd��t!|dd��d�}t&j�|||dd�||||||d|d�
�
}|g|zS)z�
  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.
  N�-r�flavor�	GENERATOR��GENERATOR_FLAVORz.pyrzgyp.generator.�CalculateVariables�CalculateGeneratorInputInfo�+generator_additional_non_configuration_keys�"generator_additional_path_sections�!generator_extra_sources_for_rules�$generator_supports_multiple_toolsetsF�4generator_wants_static_library_dependencies_adjustedT�#generator_wants_sorted_dependencies�generator_filelist_paths)�non_configuration_keys�
path_sections�extra_sources_for_rulesr7r8r9r:�parallel�root_targets)�split�copy�getr#rr�splitext�abspath�sys�insert�
__import__�globals�locals�generator_default_variables�items�
setdefault�getattrr2r3r�input�Load)r'�format�default_variablesr�depth�params�check�circular_check�duplicate_basename_check�generator_namer�	generator�key�val�generator_input_info�results                rrOrO9s����^�
�F��F�]�]�%�|�|�C��3�3��F�F�8���i� 1�2�2��
$*��K� �*0�*�*�X�r�*B�*B��&�'��_�_�U���/��W�%�%�f�-�-�a�0�N��7�=�=��8�8��D�.��7�?�?�4� � �D��3�8���	�h�o�o�a������%��.�N������F�H�H�n�M�M�)��9�?�?�A�A�+�+�j�s�C�� � ��c�*�*�*�*�
�Y�,�d�3�3�<�
� � �!2�F�;�;�;�
�Y�5�t�<�<�2�
�)�)�&�1�1�1�	�	�H�"�M�M��	�?��D�D��	�>��C�C��	�A�5�I�I��	�F��	N�	N�	�	�@�%�H�H��	�5�t�<�<����&�9�>�>�+�'8�(�1�1�1�+��!5�u�n�2� ��,�f�^�.D�F�F�&���v�	�r*c���i}|D]q}|�dd��}t|��dkr;	t|d��}n#t$r|d}YnwxYw|||d<�fd||d<�r|S)z�
  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.
  �=rrrT)r@�len�int�
ValueError)�name_value_listr\�item�tokens�token_values     r�NameValueListToDictrf�s����&����d�
�Z�Z��Q�
�
�F�
�6�{�{�a��� ��&��)�n�n����
� � � ��Q�i���� ����&�f�V�A�Y����f�V�A�Y���	�-s�A�A�Ac�r�tj�|g��}|rtj|��}|S�N)r�environrB�shlexr@)�env_name�flagss  r�ShlexEnvrm�s3��
�*�.�.��2�
&�
&�%�
���K����E�	�,r*c�D�|�d��r|�d|��S||zS)Nz--r^)�
startswith)�opt�values  r�	FormatOptrr�s1���^�^�D���"��c�c�5�5�!�!�	�u��r*c	�4�g}|jr[|rYt|��D]I}t|||����}||vr|�|��|�|���J|r1|D].}|�t|||�������/|S)a�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.
  )�use_environmentrmrr�remover$)�flag�values�	predicaterk�optionsrl�
flag_valuerqs        r�RegenerateAppendFlagr{�s���
�%�������x�(�(���
���i�i�
�3�3�4�4�e�	�%���
���U�����l�l�5������;��;�;�
��l�l�9�T�9�9�Z�#8�#8�9�9�:�:�:�:�	�,r*c�l���fd�}d�}dg}�j���D�]�\}}|d}t�|��}|ddkr|p|}|d}	|d}
|	d	kr'|�t	||||
������k|	d
vr�|r-|�t
|||���������jrj|
rhtj	�
|
��rI|�t
||tj	�
|
����������|	dvrV|	dkr|s|	d
kr|s|�|����<�jr&|
r$td|	�d|�d|
��tj
�����ktd|	�d|��tj
������|S)a}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.
  c�x��tj�|�j��}|stjjS|Srh)r�common�FixIfRelativePathrRrr�curdir)rrys �r�FixPathz RegenerateFlags.<locals>.FixPath�s3����:�'�'��g�m�<�<�D���
�W�^���Kr*c��|Srh�)rqs r�NoopzRegenerateFlags.<locals>.Noop�s���Lr*�--ignore-environmentrp�typer�actionrkr$)�storeN)�
store_true�store_falser�r�z4Warning: environment regeneration unimplemented for z flag z
 env_name )r(z/Warning: regeneration unimplemented for action )�_regeneration_metadatarKrM�extendr{r$rrrtrrirBrrE�stderr)ryr�r�rl�name�metadatarprq�value_predicater�rks`          r�RegenerateFlagsr��sM�����������
"�
"�%��6�<�<�>�>�H�H�n�d�H�
�5�/�C��G�T�"�"�E��v�&�&�0�<�W�D��O�
�h�
�F��
�#�H�
�����l�l�'��U�O�(0�'�;�;�<�<�<�<�	�?�	"�	"�	�P�
���Y�s�O�O�E�$:�$:�;�;�<�<�<�<��"�P�x�P�B�J�N�N�8�4L�4L�P�
���Y�s�O�O�B�J�N�N�8�4L�4L�$M�$M�N�N�O�O�O��	�0�	0�	0��\�!�!�e�!��]�"�"�5�"�
���S������"�N�x�N�
��=C�V�V�S�S�S�=E�X�G�CF�*�	N�	N�	N�	N��
�e�(.�����5�<?�J�H�H�H�H�H�
�,r*c� �eZdZd�Zd�Zd�ZdS)�RegeneratableOptionParserc�R�i|_tj�|��dSrh)�1_RegeneratableOptionParser__regeneratable_options�optparse�OptionParser�__init__)�selfs rr�z"RegeneratableOptionParser.__init__�s'��#%�D� ���"�"�4�(�(�(�(�(r*c�:�|�dd��}d|vrf|�dd��rP|d}|�d��}|dkrd|d<|�d	��|||d
d�|j|<tjj|g|�Ri|��dS)a�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
    rkN�dest�
regenerateTr�r�stringr�r)r�r�rkrp)�poprBr�r�r��
add_option)r�r�kwrkr�r�s      rr�z$RegeneratableOptionParser.add_option�s����v�v�j�$�'�'�H�
��|�|����|�T�2�2�|�
��Z�d��V�V�F�^�^�d�	
������6�
��F�F�8�$�$����a��	,
�,
�d�"�4�(�
��$�T�7�D�7�7�7�B�7�7�7�7�7r*c�V�tjj|g|�R�\}}|j|_||fSrh)r�r��
parse_argsr�r�)r�rrws   rr�z$RegeneratableOptionParser.parse_argss6���(�3�D�@�4�@�@�@�L�F�D�$(�$@�F�!��4�<�r*N)�__name__�
__module__�__qualname__r�r�r�r�r*rr�r��sA������)�)�)�8�8�8�>����r*r�c���tj�tjd��}t��}d}|�|�dd����|�dddd�	��|�d
ddd
�	��|�dddddd���|�dddddgd���|�dddddd���|�d d!d"d#d$�%��|�d&d'd(dd)d*d+�,��|�d-d.dgd/d0d1�2��|�d3d4ddd5d#d6d7�8��|�d9d:d;d<d*d=�>��|�d?d@dAddBd#dC�D��|�dEdFd;d<d*dG�>��|�dHdId;d<d*dJ�>��|�dKdd*dL�M��|�dNdOdPdQdR�S��|�dTdUddd5d#dV�W��|�dXdYdZdd[d\�]��|�	|��\}}|}|j
s�d}d}|jrAtj�
dd��}|rtj�|��}|s�d^g}	tjd_vr|	�d`��|	D]`}
tj|
��}|dkrDtj�|da��}tj�|��sd}�^n�an$tj�|j
��}|r!tj�|��sd}|js�g}|jr tj�
d)g��}|rt+jdb|��}|r||_n8tjdckr	ddg|_ntjdevr	dfg|_ndgg|_|js/|jr(tj�
d6��}|r||_|j|_|jD]}
dht6j|
<�t8t6jvr�t;t8di��t=|j� ����D]V\}}|ddjkr�tC|tD��rt;t8dk||���?t;t8dl||���W|stG��}|stI|dmz||fz���|j%s�|D]�}tj�&tj�'|����}|�tjj(��}tS|��D]6}|dnkr+tjj(�|��|_%n|do=�7|j%rn��|j%stIdp���|j*s|j%|_*i}g}|jr|tWd��z
}|j,r
||j,z
}t[|��}t8t6jvrt;t8dq|��g}|dkrftj�|dr��}tj�|��r't]ds|z��|�|��|j/r|�0|j/��g}|jr|tWd0��z
}|j1r
||j1z
}t[|��}t8t6jvrt;t8dt|��te|j��D]�}|||tj3��|tjd||j|j4|�
dudQ��dv�
}tk|||||j%||j6|j7|j8�	�	\}}}}|�9||||��|j:rP||ddw} |j:D]}!|!| vrtIdx|!z����|�;||j:|����dS)yNrz(usage: %s [options ...] [build_file ...]z%sz%progz--build�configsr$z0configuration for build after project generation)r�r��helpz--checkrTr�zcheck format of gyp filesz--config-dir�
config_dirr��GYP_CONFIG_DIRz7The location for configuration files like include.gypi.)r�r�rk�defaultr�z-dz--debugr�	DEBUGMODEz�turn on a debugging mode for debugging GYP.  Supported modes are "variables", "includes" and "general" or "all" for all of them.)r��metavarr�r�r�z-D�defineszVAR=VAL�GYP_DEFINESzsets variable VAR to value VAL)r�r�r�rkr�z--depthrR�PATHrz1set DEPTH gyp variable to a relative path to PATH)r�r�r�r�z-fz--format�formats�GYP_GENERATORSFzoutput formats to generate)r�r�rkr�r�z-G�generator_flagszFLAG=VAL�GYP_GENERATOR_FLAGSzsets generator flag FLAG to VAL)r�r�r�r�rkr�z--generator-output�generator_output�DIR�GYP_GENERATOR_OUTPUTz$puts generated build files under DIR)r�r�r�r�r�rkr�r�rtr�Tz.do not read options from environment variables)r�r�r�r�r�z-Iz	--includer�INCLUDEz)files to include in all loaded .gyp files)r�r�r�r�r�z--no-circular-checkrUz4don't check for circular relationships between filesz--no-duplicate-basename-checkrVz#don't check for duplicate basenamesz
--no-parallelzDisable multiprocessing)r�r�r�z-Sz--suffix�suffixr0z suffix to add to generated files)r�r�r�z--toplevel-dir�toplevel_dirz/directory to use as the root of the source tree)r�r�r�r�r�r�z-Rz
--root-targetr?�TARGETz-include only TARGET and its deep dependencies)r�r�r�r��HOME)�cygwin�win32�USERPROFILEr z[\s,]�darwin�xcode)r�r��msvs�makerzrunning with these options:�_z
  %s: '%s'z  %s: %sz

%s: error: no build_file�src���z�Could not automatically locate src directory.  This isa temporary Chromium feature that will be removed.  Use--depth as a workaround.zcmdline_default_variables: %szinclude.gypizUsing overrides found in zgenerator_flags: %s�target_arch)
ryr'r��cwd�build_files_arg�
gyp_binary�home_dot_gypr>r?r��configurationsz(Invalid config specified via --build: %s)<rrrrE�argvr��	set_usage�replacer�r�r�rtrirB�
expanduser�platformr$�getenv�join�existsr��rer@r��no_parallelr>rr�
DEBUG_GENERALr�sorted�__dict__rK�
isinstance�
basestringr)rrRrD�dirname�sep�reversedr�rmr�rfrrr�r��setr"r?rOrTrUrV�GenerateOutputr��PerformBuild)"r�my_name�parser�usageryr�r'�homer��	home_vars�home_var�generate_formats�g_or�optionrq�
build_file�build_file_dir�build_file_dir_components�	component�cmdline_default_variablesr�r�default_include�	gen_flagsr�rPrSrX�	flat_list�targets�data�
valid_configs�confs"                                  r�gyp_mainr�s
���G���S�X�a�[�)�)�'�$�&�&�&�
4�%����5�=�=��w�/�/�0�0�0����I�I�h�K��M�M�M����I�G�L�4��6�6�6����N��g�-�t�$��%�%�%�	���D�)�'�;�#�R�7I��J�J�J�	���D�y��9�*�9��;�;�;�	���I�G�V�&�L��N�N�N����D�*�9�X�-�%�5��7�7�7�	���D�0��2�&�1F�:��<�<�<�	���(�/A�"�D�%�f�3�?��A�A�A�	���*�1B�(�$�5�I��K�K�K�	���D�+�J�x�%�F�D��F�F�F�	���)�0@�(�$�5�O��Q�Q�Q�	���3�3�M� �U�>��@�@�@�	���O�L�%�2��4�4�4����D�*�8�R�;��=�=�=����$�>�'� �%�f�J��L�L�L�	���D�/��#�X�H��J�J�J�$�.�.�t�4�4��'�?��+�
�	�:��D��L���8��Z�^�^�$4�d�;�;�l�	�8��w�)�)�,�7�7�����(�i�	��,�	,�	,�����'�'�'����(��y��"�"���4�<�<�����d�F�3�3�,������-�-���L�L��E����7�%�%�g�&8�9�9�L���"�'�.�.��6�6���L�	��#�����>�����(8�"�=�=���>���(�,<�=�=���	#�(�g�o�o�

���	!�	!�"�)�����<�.�.�.�!�(����!�(���	�	!�%�g�&=�%�
�*�.�.�/�
0�
0�C�
�%�!$�g�� �,�,�'���m���d��C�I�d�O�O��c�i����
�<�=�=�=��� 0� 6� 6� 8� 8�9�9�>�>�
���	���c�	�	��	�E�:�	&�	&�>��M�<���?�?�?�?��M�:�v�u�=�=�=�=�	�#� �"�"�K�	�'�
�E�:�:��W�%�&�'�'�'�
��1�!���
��w���r�w���z�'B�'B�C�C�n�"0�"6�"6�r�w�{�"C�"C��� 9�:�:�*�*�)������'�+�*�*�+D�E�E�'�-�
�%�%�b�)�)�
���
����=�1��0�
1�
1�1�
�	�)�"�=�G��
!���'���'��x�
�&�&�&�G��_���w���G�1�'�:�:���c�i����
�/�1J�L�L�L��(��T����g�l�l�<��@�@�O�	�w�~�~�o�&�&�'��'�/�9�:�:�:��o�o�o�&�&�&�
��&��O�O�G�$�%�%�%��)���1�
��/�0�0�0�I���)�
��(�(�I�'�	�2�2�/��c�i����
�4�o�F�F�F��G�O�$�$� <� <�f� �(�!0��Y�[�[�!0��H�Q�K�*�!�*�%�2�6�:�:�=�"�M�M�	O�	O�F�-1��V�6��'�-���
�w�5��(�-*�-*�)�Y�	�7�D����Y���v�>�>�>���<��i��l�+�,<�=�m��/�L�L�$��}�$�$��C�d�J�K�K�
K�%����T�7�?�F�;�;�;��
�r*c��	t|��S#t$r-}tj�d|z��Yd}~dSd}~wwxYw)Nzgyp: %s
r)r�rrEr��write)r�es  r�mainr�sY��
��D�>�>���	�
�
�
��J���[�1�_�%�%�%��1�1�1�1�1�����
���s��
A�"A�Ac�D�ttjdd���S)Nr)r�rEr�r�r*r�script_mainr�'s��	
�c�h�q�r�r�l�	�	�r*�__main__)$�
__future__rrA�	gyp.inputrr��os.pathrr�rjrEr�
gyp.commonrr��	NameError�strrr��DEBUG_VARIABLES�DEBUG_INCLUDESrr)rOrfrmrrr{r�r�r�r�r�r�r��exitr�r*r�<module>rs���&�%�%�%�%�%�����������������	�	�	�	�����
�
�
�
�������������*�*�������*�*�*�����	���
�����8�8�8����13��C��E��t�Q�Q�Q�Q�f���,������
���,1�1�1�f'�'�'�'�'�� 5�'�'�'�R}�}�}�@
�
�
�����z���
�#�(�;�;�=�=�������s�1�;�;