| Server IP : 46.62.235.243 / Your IP : 216.73.216.217 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 : /lib/python3/dist-packages/gyp/__pycache__/ |
Upload File : |
�
K��b�� � �B � d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl Z
ddlZ
ddlmZ e
ej d� Zd� Zd� Zd � Zd
� Zd� Zd� Zd
� Zd� Zd� Z G d� de� Zd� Z G d� de� Zdad� Z d� Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(y# e$ r eZ
Y �mw xY w)zg
This module helps emulate Visual Studio 2008 behavior on top of other
build systems, primarily ninja.
� N)�collections_abc)�
OrderedSet)�version_to_tuplez(\\*)"c � � t j d� sG| j d� dkD s| j d� dkD rt j j | � } t j d� | � } | j dd� } d| z dz S ) z�Quote a command line argument so that it appears as one argument when
processed via cmd.exe and parsed by CommandLineToArgvW (as is typical for
Windows programs).�#GYP_MSVS_DISABLE_PATH_NORMALIZATION�/r � c �0 � d| j d� z dz S )N� r �\")�group)�mos �4/usr/lib/python3/dist-packages/gyp/msvs_emulation.py�<lambda>z!QuoteForRspFile.<locals>.<lambda>2 s � �A������O�e�,C� � �%z%%�") �os�getenv�find�count�path�normpath�windows_quoter_regex�sub�replace)�args r �QuoteForRspFiler s{ � �
���8� 9�
�x�x��}�q��C�I�I�c�N�Q�.��G�G���S�!�c�
� � �!C�S�I�#� ���C���#�
�s��S��r c �2 � | sy| d j d� r>| d j dd� \ }}|dz t j j |� z }n"t j j | d � }|dz dj d� | dd D � � z S )z6Process a list of arguments using QuoteCmdExeArgument.� r zcall � r c 3 �2 K � | ] }t |� �� � y �w�N)r )�.0r s r � <genexpr>z$EncodeRspFileList.<locals>.<genexpr>P s � �� �!K�3�/�#�"6�!K�� �N)�
startswith�splitr r r �join)�args�call�programs r �EncodeRspFileListr- C s� � �
�b� �!�W���� ���G�M�M�#�q�)�M�D�'��S�j�2�7�7�+�+�G�4�4�G��g�g���t�A�w�'�G� �3�����!K�$�q�r�(�!K�K� K�Kr c �V � | s|S |s| S t | j |d � ||dd � S )z�Given a list of dictionary keys |path| and a tree of dicts |root|, find
value at path, or return |default| if any of the path doesn't exist.r r N)�_GenericRetrieve�get)�root�defaultr s r r/ r/ S s6 � �
��N�
��K� �$�(�(�4��7�+�W�d�1�2�h� ?�?r c � � | �| S t | t j � r#t | t � s| D �cg c] }||z �� c}S || z S c c}w )zDAdd |prefix| to |element| or each subelement if element is iterable.)�
isinstancer �Iterable�
basestring)�element�prefix�es r �
_AddPrefixr: ] sK � ��_��N���/�2�2�3�
�W�j�
)� '�(�1�F�Q�J�(�(��G���� )s �Ac �� � |�m| �kt |� s|j }t | t j � r2t | t
� s"t
d| D �cg c]
} ||� �� c}� } | S || � } | S c c}w )z�If |element| then remap it through |map|. If |element| is iterable then
each item will be remapped. Any elements not found will be removed.N)�callabler0 r4 r r5 r6 �filter)r7 �map�elems r �_DoRemappingr@ h so � � �_��,��C�=��G�G�c��7�O�4�4�5��w�
�+��t�G�<�D�c�$�i�<�=�g�
�.� �G��g� �.�� =s �A2
c � � | �P|�Nt |t j � r"t |t � s| j |� y| j |� y|S )z�If |append| is None, simply return |element|. If |append| is not None,
then add |element| to it, adding each item in |element| if it's a list or
tuple.N)r4 r r5 r6 �extend�append)rC r7 s r �_AppendOrReturnrD v sF � � ��G�/��7�O�4�4�5��w�
�+��m�m�G���m�m�G���Nr c � � t t d� rt j S t j j d� } | s{g d�}t
j |t j t j d�� }|j � d j � D ] }d|v s�|j d� d d
z } � | t _ | S )z�Try to find an installation location for the DirectX SDK. Check for the
standard environment variable, and if that doesn't exist, try to find
via the registry. May return None if not found in either location.� dxsdk_dir� DXSDK_DIR)zreg.exe�queryzHKLM\Software\Microsoft\DirectXz/sT)�stdout�stderr�universal_newlinesr �InstallPathz � �\)�hasattr�_FindDirectXInstallationrF r �environr0 �
subprocess�Popen�PIPE�communicate�
splitlinesr( )rF �cmd�p�lines r rP rP � s� � �
�
%�{�3�#�-�-�-��j�j�n�n�[�)�)� �
H�C�����Z�_�_�Z�_�_�,0� 2�A��
�
���"�-�-�/� 1�� �$� ��J�J�v�&�q�)�D�0� �1�
(1��$� �r c �$ � i }| j � rG| j � |d<