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__/MSVSProject.cpython-311.pyc
�

�"Kb���r�dZddlZddlmZGd�de��ZGd�de��ZGd�de��ZdS)	z$Visual Studio project reader/writer.�Nc� �eZdZdZdd�Zd�ZdS)�ToolzVisual Studio tool.Nc�,�|pi|_||jd<dS)zoInitializes the tool.

    Args:
      name: Tool name.
      attrs: Dict of tool attributes; may be None.
    �NameN��_attrs)�self�name�attrss   �1/usr/lib/python3/dist-packages/gyp/MSVSProject.py�__init__z
Tool.__init__s!���+�2�D�K��D�K�����c��d|jgS)z]Creates an element for the tool.

    Returns:
      A new xml.dom.Element for the tool.
    rr)r	s r�_GetSpecificationzTool._GetSpecifications��
�D�K� � r�N)�__name__�
__module__�__qualname__�__doc__r
r�rrrr
s=������������!�!�!�!�!rrc��eZdZdZdd�ZdS)�Filterz1Visual Studio filter - that is, a virtual folder.Nc�@�||_t|pg��|_dS)z�Initializes the folder.

    Args:
      name: Filter (folder) name.
      contents: List of filenames and/or Filter objects contained.
    N)r
�list�contents)r	r
rs   rr
zFilter.__init__%s"���D�I����R�(�(�D�M�M�Mrr)rrrrr
rrrrr"s.������9�9�)�)�)�)�)�)rrc�H�eZdZdZdd�Zd�Zd�Zdd�Zd�Zd�Z	dd	�Z
d
�ZdS)�Writerz!Visual Studio XML project writer.Nc���||_||_||_||_|sdg}dg|_|D] }|j�dd|ig���!dg|_dg|_dg|_t��|_
dS)	aInitializes the project.

    Args:
      project_path: Path to the project file.
      version: Format version to emit.
      name: Name of the project.
      guid: GUID to use for project, if not None.
      platforms: Array of string, the supported platforms.  If null, ['Win32']
    �Win32�	Platforms�Platformr�	ToolFiles�Configurations�FilesN)�project_path�versionr
�guid�platform_section�append�tool_files_section�configurations_section�
files_section�dict�
files_dict)r	r%r&r
r'�	platforms�platforms       rr
zWriter.__init__6s���%�D���D�L��D�I��D�I����)�i�)�M�D���E�E��
��"�"�J���0B�#C�D�D�D�D�*�m�D��#3�"4�D��!��D���f�f�D�O�O�Orc�B�|j�dd|ig��dS)zeAdds a tool file to the project.

    Args:
      path: Relative path from project to tool file.
    �ToolFile�RelativePathN)r*r))r	�paths  r�AddToolFilezWriter.AddToolFileTs+��	��"�"�J���0F�#G�H�H�H�H�Hrc�@�|si}|sg}|���}||d<||g}|rv|D]s}t|t��r(|�|������?|�t|��������t|S)a Returns the specification for a configuration.

    Args:
      config_type: Type of configuration node.
      config_name: Configuration name.
      attrs: Dict of configuration attributes; may be None.
      tools: List of tools (strings or Tool objects); may be None.
    Returns:
    r)�copy�
isinstancerr)r)r	�config_type�config_namer�tools�
node_attrs�
specification�ts        r�_GetSpecForConfigurationzWriter._GetSpecForConfiguration\s������e����e������J�$�J�v�� �*�-�M�
�<��<�<�!��a����	<�
�
�
�q�2�2�4�4�
5�
5�
5�
5�
�
�
�t�A�w�w�8�8�:�:�
;�
;�
;�
;��rc�j�|�d|||��}|j�|��dS)z�Adds a configuration to the project.

    Args:
      name: Configuration name.
      attrs: Dict of configuration attributes; may be None.
      tools: List of tools (strings or Tool objects); may be None.
    �
ConfigurationN)r?r+r))r	r
rr;�specs     r�	AddConfigzWriter.AddConfig{s:���(�(��$��u�M�M�D���&�&�t�,�,�,�,�,rc���|D]c}t|t��r'dd|jig}|�||j��ndd|ig}||j|<|�|���ddS)z�Adds files and/or filters to the parent node.

    Args:
      parent: Destination node
      files: A list of Filter objects and/or relative paths to files.

    Will call itself recursively, if the files list contains Filter objects.
    rr�Filer3N)r8rr
�_AddFilesToNoderr.r))r	�parent�files�f�nodes     rrFzWriter._AddFilesToNode�s�������	�A�v�	�	�"��6�1�6�*�+�����T�1�:�.�.�.�.����+�,��!������m�m�D������rc�<�|�|j|��dS)aKAdds files to the project.

    Args:
      files: A list of Filter objects and/or relative paths to files.

    This makes a copy of the file/filter tree at the time of this call.  If you
    later add files to a Filter object which was passed into a previous call
    to AddFiles(), it will not be reflected in this project.
    N)rFr,)r	rHs  r�AddFileszWriter.AddFiles�s#��	����+�U�3�3�3�3�3rc��|j�|��}|std|z���|�d|||��}|�|��dS)a\Adds a configuration to a file.

    Args:
      path: Relative path to the file.
      config: Name of configuration to add.
      attrs: Dict of configuration attributes; may be None.
      tools: List of tools (strings or Tool objects); may be None.

    Raises:
      ValueError: Relative path does not match any file added via AddFiles().
    z(AddFileConfig: file "%s" not in project.�FileConfigurationN)r.�get�
ValueErrorr?r))r	r4�configrr;rGrBs       r�
AddFileConfigzWriter.AddFileConfig�so���_�
 �
 ��
&�
&�F��J��A�D�H�I�I�I��(�(�)<�f�e�).�0�0�D�
�M�M�$�����rc���dd|j���|j|j|jdd�|j|j|jdg|jdgg}tj	||j
d���d	S)
zWrites the project file.�VisualStudioProjectz
Visual C++�	Win32Proj)�ProjectType�Versionr�ProjectGUID�
RootNamespace�Keyword�
References�GlobalszWindows-1252)�encodingN)r&�ProjectVersionr
r'r(r*r+r,�easy_xml�WriteXmlIfChangedr%)r	�contents  r�WriteIfChangedzWriter.WriteIfChanged�s���	�$��L�/�/�1�1����	��)��	
�	
�	
�����#�	����	���G� 
��w��(9�(6�8�8�8�8�8�8r)NN)rrrrr
r5r?rCrFrLrRrbrrrrr3s�������)�)�����<I�I�I����>	-�	-�	-�	-����$
4�
4�
4�����,8�8�8�8�8rr)	r�
gyp.common�gyp�gyp.easy_xmlr_�objectrrrrrr�<module>rgs���
+�*�����������
!�!�!�!�!�6�!�!�!�*)�)�)�)�)�V�)�)�)�"]8�]8�]8�]8�]8�V�]8�]8�]8�]8�]8r