HOME


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

�"Kbp0��4�dZddlZddlZddlZddlZ	ddlZejZn#e	$rddlZej
ZYnwxYw	en#e$rd�ZYnwxYwej
��ddd�Zdd�ZGd	�d
e��ZGd�de��ZGd
�de��ZGd�de��ZdS)z7New implementation of Visual Studio project generation.�Nc��||k||kz
S�N�)�a�bs  �-/usr/lib/python3/dist-packages/gyp/MSVSNew.py�cmpr	s��
��E�a�!�e���z&{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}z&{2150E333-8FDC-42A3-9474-1A3956D46DE8})�project�folder�msvs_newc�d�t|��t|��z}|�d��}t|��������}d|dd�zdz|dd�zdz|dd�zdz|dd�zdz|dd	�zd
z}|S)a#Returns a GUID for the specified target name.

  Args:
    name: Target name.
    seed: Seed for MD5 hash.
  Returns:
    A GUID-line string calculated from the name and seed.

  This generates something which looks like a GUID, but depends only on the
  name and seed.  This means the same name/seed will always generate the same
  GUID, so that projects and solutions which refer to each other can explicitly
  determine the GUID to refer to explicitly.  It also means that the GUID will
  not change when the project for a target is rebuilt.
  zutf-8�{N��-���� �})�str�encode�_new_md5�	hexdigest�upper)�name�seed�to_hash�d�guids     r�MakeGuidr!-s��� 
��I�I��D�	�	�!�'��N�N�7�#�#�'��w���!�!�#�#�)�)�+�+�!�

��"�1�"��+��
�a��"��g�
%��
+�a��2��h�
6��
<�q��B��x�
G����B�r�E�(�� �!�$�	
�+r
c��eZdZd�Zd�ZdS)�MSVSSolutionEntryc��t|j|���f|j|���f��Sr)r	r�get_guid��self�others  r�__cmp__zMSVSSolutionEntry.__cmp__Js2����	�4�=�=�?�?�+�e�j�%�.�.�:J�:J�-K�L�L�Lr
c�r�|j|���f|j|���fkSr)rr%r&s  r�__lt__zMSVSSolutionEntry.__lt__Ns-���I�t�}�}���'�5�:�u�~�~�7G�7G�*H�H�Hr
N)�__name__�
__module__�__qualname__r)r+rr
rr#r#Is:������M�M�M�I�I�I�I�Ir
r#c�$�eZdZdZ		dd�Zd�ZdS)�
MSVSFolderz.Folder in a Visual Studio project or solution.Nc��|r||_n$tj�|��|_||_||_tt
|pg����|_t
|pg��|_td|_
dS)a�Initializes the folder.

    Args:
      path: Full path to the folder.
      name: Name of the folder.
      entries: List of folder entries to nest inside this folder.  May contain
          Folder or Project objects.  May be None, if the folder is empty.
      guid: GUID to use for folder, if not None.
      items: List of solution items to include in the folder project.  May be
          None, if the folder does not directly contain items.
    rN)r�os�path�basenamer �sorted�list�entries�items�ENTRY_TYPE_GUIDS�entry_type_guid)r'r3rr7r r8s      r�__init__zMSVSFolder.__init__Ts���)��d�i�i��'�"�"�4�(�(�d�i��D�I��D�I��$�w�}�"�-�-�.�.�D�L��e�k�r�"�"�D�J�+�H�5�D���r
c�T�|j�t|jd���|_|jS)N�msvs_folder)r)r r!r3�r's rr%zMSVSFolder.get_guidps(���y���4�9�=�9�9�9�d�i��9�r
)NNNN)r,r-r.�__doc__r;r%rr
rr0r0QsC������6�6�26�$(�6�6�6�6�8����r
r0c�2�eZdZdZ			dd�Zd�Zd�Zd�ZdS)�MSVSProjectzVisual Studio project.Nc	�^�||_||_||_||_|pAtj�tj�|����d|_t|pg��|_	td|_|r||_ni|_||_
d|_dS)a�Initializes the project.

    Args:
      path: Absolute path to the project file.
      name: Name of project.  If None, the name will be the same as the base
          name of the project file.
      dependencies: List of other Project objects this project is dependent
          upon, if not None.
      guid: GUID to use for project, if not None.
      spec: Dictionary specifying how to build this project.
      build_file: Filename of the .gyp file that the vcproj file comes from.
      config_platform_overrides: optional dict of configuration platforms to
          used in place of the default for this target.
      fixpath_prefix: the path used to adjust the behavior of _fixpath
    rrN)r3r �spec�
build_filer2�splitextr4rr6�dependenciesr9r:�config_platform_overrides�fixpath_prefix�msbuild_toolset)	r'r3rrFr rCrDrGrHs	         rr;zMSVSProject.__init__}s���$�D�I��D�I��D�I� �D�O��C���(�(���)9�)9�$�)?�)?�@�@��C�D�I��\�/�R�0�0�D��+�I�6�D�� �*�'@�d�$�$�')�d�$�(�D���D���r
c�2�t|pg��|_dSr)r6rF)r'rFs  r�set_dependencieszMSVSProject.set_dependencies�s���\�/�R�0�0�D���r
c�P�|j�t|j��|_|jSr)r r!rr>s rr%zMSVSProject.get_guid�s%���y���4�9�%�%�d�i��9�r
c��||_dSr)rI)r'rIs  r�set_msbuild_toolsetzMSVSProject.set_msbuild_toolset�s��*�D���r
)NNNNNNN)r,r-r.r?r;rKr%rNrr
rrArAzse��������DH�KO� $�# �# �# �# �J1�1�1����"+�+�+�+�+r
rAc�<�eZdZdZ		dd�Zejjfd�ZdS)�MSVSSolutionzVisual Studio solution.NTc��||_||_||_t|pg��|_|r|dd�|_n	ddg|_|���dS)a�Initializes the solution.

    Args:
      path: Path to solution file.
      version: Format version to emit.
      entries: List of entries in solution.  May contain Folder or Project
          objects.  May be None, if the folder is empty.
      variants: List of build variant strings.  If none, a default list will
          be used.
      websiteProperties: Flag to decide if the website properties section
          is generated.
    NzDebug|Win32z
Release|Win32)r3�websiteProperties�versionr6r7�variants�Write)r'r3rSr7rTrRs      rr;zMSVSSolution.__init__�si���D�I�.�D���D�L���
�2�&�&�D�L��7��q�q�q�k�d�m�m�%�o�6�d�m�	�J�J�L�L�L�L�Lr
c�
�t��}|jdd�}|rP|�d��}||vr�|�|��t	|t
��r
||jz
}|�Pt
|��}||j��}|�d|j	�
��z��|�d|j	���z��tj�
|j��d}|D�]�}tj�|j|��}|�dd��pd}|�d|j�d	|j�d
|�d
|����d�	��|jr|�d��t	|t
��rW|jrP|�d
��|jD]}	|�d|	�d|	�d����|�d��t	|t.��r{|jrt|�d��|jD]B}
|�d|
����d|
����d����C|�d��|�d�����|�d��|�d��|jD]}|�d|�d|�d����|�d��g}i}
|D]Z}t	|t.��rC|�|�����|j|
|���<�[|���|�d��|D]f}|jD]\}|
|�||��}|�d|�d|�d|�d���|�d|�d|�d|�d����]�g|�d��|�d��|�d��|�d��t=d�|D����r�|�d��|D]b}t	|t
��s�|jD]B}|�d|����d|����d����C�c|�d��|�d��|���dS)zfWrites the solution file to disk.

    Raises:
      IndexError: An entry appears multiple times.
    Nrz:Microsoft Visual Studio Solution File, Format Version %s
z# %s
�/�\�.z	Project("z") = "z", "z"
z�	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
z-	ProjectSection(SolutionItems) = preProject
z		z = z
z	EndProjectSection
z4	ProjectSection(ProjectDependencies) = postProject
zEndProject
zGlobal
z>	GlobalSection(SolutionConfigurationPlatforms) = preSolution
z	EndGlobalSection
z>	GlobalSection(ProjectConfigurationPlatforms) = postSolution
z
.ActiveCfg = z.Build.0 = z2	GlobalSection(SolutionProperties) = preSolution
z		HideSolutionNode = FALSE
c�F�g|]}t|t���|j��Sr)�
isinstancer0r7)�.0�es  r�
<listcomp>z&MSVSSolution.Write.<locals>.<listcomp>Vs)��H�H�H�!�j��J�.G�.G�H�A�I�H�H�Hr
z.	GlobalSection(NestedProjects) = preSolution
zEndGlobal
) �setr7�pop�addr[r0r5r3�writerS�SolutionVersion�Descriptionr2�split�gyp�common�RelativePath�replacer:rr%rRr8rArFrT�appendrG�sort�get�any�close)r'�writer�all_entries�entries_to_checkr]�f�sln_root�
relative_path�folder_name�ir�v�config_guids�config_guids_overrides�g�nv�subentrys                 rrUzMSVSSolution.Write�s����%�%�K��|�A�A�A���
�&�
�
�
�q�
!�
!�a�
�k�	�	���o�o�a����
�A�z�	"�	"�&��A�I�%���&���%�%�K�	��t�y���A��G�G�
$�&*�l�&B�&B�&D�&D�
E�F�F�F��G�G�J���1�1�3�3�3�4�4�4��w�}�}�T�Y�'�'��*�H�
�! �! ���j�-�-�a�f�h�?�?�m�"�)�)�#�t�4�4�;��k��g�g�g�
�
�
�
�
�&�&�&�
�+�+�
�*�*�,�,�,�,�	�	�	�	�
�	�+�	���*�	+�	+�	+�

�A�z�	"�	"�-��7�	-�
�'�'�D�
E�
E�
E��7�0�0�a�
�G�G�G����A�A�A�.�/�/�/�/�
�'�'�+�
,�
,�
,�	�A�{�	#�	#�-��>�	-�
�'�'�K�
L�
L�
L��>�F�F�a�
�G�G�G��������q�z�z�|�|�|�|�D�E�E�E�E�
�'�'�+�
,�
,�
,��g�g�������G�G�L�����G�G�O�P�P�P�
�]�*�*���g�g�g�1�1�1�a�a�a�(�)�)�)�)��G�G�$�%�%�%��L���
�K�K��	�A�{�	#�	#�K����A�J�J�L�L�)�)�)�/0�/J��q�z�z�|�|�,���������G�G�O�P�P�P�
�����}���!�
#�A�
&�
*�
*�1�a�
0�
0��	
����
�A�A�
�A�A��B�B�
�	�	�	�	
����
�A�A�
�A�A��B�B�
�	�	�	�	�� �G�G�$�%�%�%��G�G�C�D�D�D��G�G�.�/�/�/��G�G�$�%�%�%��H�H�{�H�H�H�I�I�(��g�g�A�B�B�B��K�K�!��!�Z�(�(�	�
��	�	K�	K�H�
�'�'�'�x�'8�'8�':�':�':�':�A�J�J�L�L�L�L�I�
J�
J�
J�
J�	K��g�g�&�'�'�'��G�G�O�����G�G�I�I�I�I�Ir
)NNT)	r,r-r.r?r;rfrg�WriteOnDiffrUrr
rrPrP�sY��������;?�!%�#�#�#�#�L��/�|�|�|�|�|�|r
rP)r
)r?r2�random�sys�
gyp.commonrf�hashlib�md5r�ImportError�newr	�	NameErrorrr9r!�objectr#r0rArPrr
r�<module>r�s���
>�=�	�	�	�	�
�
�
�
�
�
�
�
�������.�.�.�
�[�(�(�������*�*�*�
�W�(�(�(�����
��#�#���������������
���
�
�
�8�6��������8I�I�I�I�I��I�I�I�#�#�#�#�#�"�#�#�#�R=+�=+�=+�=+�=+�#�=+�=+�=+�De�e�e�e�e�6�e�e�e�e�es� �3�3�:�A�A