403Webshell
Server IP : 46.62.235.243  /  Your IP : 216.73.216.163
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/thread-self/root/usr/lib/python3/dist-packages/gyp/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/usr/lib/python3/dist-packages/gyp/__pycache__/MSVSProject.cpython-312.pyc
�

�"Kb���^�dZddlZddlmZGd�de�ZGd�de�ZGd�de�Zy)	z$Visual Studio project reader/writer.�Nc��eZdZdZdd�Zd�Zy)�ToolzVisual Studio tool.Nc�8�|xsi|_||jd<y)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�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�K� � r�N)�__name__�
__module__�__qualname__�__doc__r
r�rrrr
s����!rrc��eZdZdZdd�Zy)�Filterz1Visual Studio filter - that is, a virtual folder.Nc�:�||_t|xsg�|_y)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�Mrr)rrrrr
rrrrr"s
��9�)rrc�F�eZdZdZdd�Zd�Zd�Zdd�Zd�Zd�Z	dd	�Z
d
�Zy)�Writerz!Visual Studio XML project writer.Nc���||_||_||_||_|sdg}dg|_|D]!}|jjdd|ig��#dg|_dg|_dg|_t�|_
y)	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��
���"�"�J���0B�#C�D�E�*�m�D��#3�"4�D��!��D���f�D�Orc�B�|jjdd|ig�y)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�Hrc�
�|si}|sg}|j�}||d<||g}|r_|D]Z}t|t�r |j|j	���3|jt|�j	���\|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�
5�
�
�
�t�A�w�8�8�:�
;�	<�
�rc�b�|jd|||�}|jj|�y)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�D����&�&�t�,rc���|D]e}t|t�r-dd|jig}|j||j�ndd|ig}||j
|<|j
|��gy)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�sm�����	�A�v�	��6�1�6�6�*�+�����T�1�:�:�.����+�,��!�������m�m�D��rc�<�|j|j|�y)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�3rc��|jj|�}|std|z��|jd|||�}|j	|�y)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�sT���_�_�
 �
 ��
&�F���A�D�H�I�I��(�(�)<�f�e�).�0�D�
�M�M�$�rc�*�dd|jj�|j|j|jdd�|j|j
|jdg|jdgg}tj||jd��y	)
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�L�/�/�1�����	�	��)�)��	
�	
�������#�#�	�����	���G� 
���w��(9�(9�(6�8r)NN)rrrrr
r5r?rCrFrLrRrbrrrrr3s.��)��<I��>	-��$
4��,8rr)	r�
gyp.common�gyp�gyp.easy_xmlr_�objectrrrrrr�<module>rgs6��
+���
!�6�!�*)�V�)�"]8�V�]8r

Youez - 2016 - github.com/yon3zu
LinuXploit