HOME


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

�"Kb(,��J�dZddlZddlZddlZddlZddlZd�Zd�Z	d�Z
d�ZdS)a�Xcode-ninja wrapper project file generator.

This updates the data structures passed to the Xcode gyp generator to build
with ninja instead. The Xcode project itself is transformed into a list of
executable targets, each with a build step to build with ninja, and a target
with every source and resource file.  This appears to sidestep some of the
major performance headaches experienced using complex projects and large number
of targets within Xcode.
�Nc���tj�|��\}}|dz}|d}|jr%tj�|j|��}	tj|��n-#t$r }|jtjkr�Yd}~nd}~wwxYwd}||fD]v}	tj�tj�	|	����ddz}
tjj�
d|
z��}
|d|
zz
}�w|d	z
}tj�|d
��}	t|d��5}|���}
|
|kr	ddd��dS	ddd��n#1swxYwYn#t $rYnwxYwt|d��5}|�|��ddd��dS#1swxYwYdS)
z8 Create a workspace to wrap main and sources gyp paths. z.xcworkspace�optionsNzC<?xml version="1.0" encoding="UTF-8"?>
<Workspace version = "1.0">
rz
.xcodeprojzgroup:z$  <FileRef location = %s></FileRef>
z
</Workspace>
zcontents.xcworkspacedata�r�w)�os�path�splitext�generator_output�join�makedirs�OSError�errno�EEXIST�basename�xml�sax�saxutils�	quoteattr�open�read�IOError�write)�main_gyp�sources_gyp�params�build_file_root�build_file_ext�workspace_pathr�e�
output_string�gyp_name�name�workspace_file�
input_file�input_string�output_files               �1/usr/lib/python3/dist-packages/gyp/xcode_ninja.py�_WriteWorkspacer(s���&(�g�&6�&6�x�&@�&@�#�?�N�"�^�3�.��9��'���L��W�\�\�'�":�N�K�K�N���K�������	�����w�%�,�����������������2�-��[�)�D�D�h�
�7���B�G�,�,�X�6�6�7�7��:�\�I�D��7��%�%�h��o�6�6�D��<�t�C�C�M�M��#�#�-��7�<�<��0J�K�K�.�	�	
�n�c�	"�	"��j��_�_�&�&�l�	��	&�	&����������	&���������������������
�	�	�	��D�	�����N�C� � �%�K����m�$�$�$�%�%�%�%�%�%�%�%�%�%�%�%����%�%�%�%�%�%sf�A2�2
B�<B�B�F�F�.F�<F�F�F�F�F�
F!� F!�4G�G�Gc	��d}d}|ry|d}tj�|jtjj�|����}|�di���dd��}|�d��}|�d|��}|�d��}i}||d<||d<|r||d<|�d	��|d	<|�d
��|d
<i|d<i}	|rd|z|	d
<d|vr�|d�	��D]h}
|d|
�di��}d|vrd|	d<|d|	d<dD]}||vr|||	|<�i|d|
<|	|d|
d<�i|�dd��|d<|�dd��|d<|�dd��|d<|�dd��|d<|�dd��|d<|d|d<|r`d|zggddtj
dzdd|	d
|gd|zd�g|d <|dkr)|d dd!�d"|f��|S)#z- Create fake target for xcode-ninja wrapper. Nrr�generator_flags�xcode_ninja_jobs�target_name�product_name�product_extension�toolset�default_configuration�configurationsz-%s/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)�CONFIGURATION_BUILD_DIR�xcode_settings�IPHONEOS_DEPLOYMENT_TARGET�NO�CODE_SIGNING_REQUIRED)�
BUNDLE_LOADER�	TEST_HOST�
mac_bundle�mac_xctest_bundle�ios_app_extension�ios_watchkit_extension�ios_watchkit_app�typezCompile and copy %s via ninja�envzPATH=%s�PATH�ninjaz-C)�action_name�inputs�outputs�action�message�actionsrEz-j)rrr�toplevel_dir�gyp�	generatorrA�ComputeOutputDir�get�keys�environ�extend)
�old_specr�ninja_toplevel�jobsrr,r-r.�ninja_target�new_xcode_settings�config�old_xcode_settings�keys
             r'�_TargetFromSpecrX8sA���.�	
�$��H��Y��G�
����W�)��]�(�9�9�&�A�A�	C�	C���:�:�'��,�,�0�0�1C�Q�G�G�D����]�+�+�+����n�k�:�:�,��l�l�#6�7�7���,� +�,�}��!-�,�~���:�(9�L�$�%�$�L�L��3�3�,�y��*2�,�,�7N�*O�*O�,�&�'�#%�,�� ����I�7�.�H��0�1���!�!��+�,�1�1�3�3�
�
���!�"�6�*�.�.�/?��D�D��	%�);�	;�	;�6:��2�3��;�<�	�7�8�/�<�<�#��$�$�$�$6�s�$;�
�S�
!��/1�l�#�$�V�,�
��#�$�V�,�-=�>�>� (�|�|�L�!�<�<�,�|��&.�l�l�3F��&J�&J�,�"�#�&.�l�l�3F��&J�&J�,�"�#��l�l�+�Q�/�/��'�(�%-�\�\�2D�a�%H�%H�,�!�"�!�&�)�,�v���@�7��D���
�
�b�j��(�
(�
�
�
�6�
7�
�

�3�[�@�
�
��L��� �a�x�x��9��a� ��*�1�1�4��,�?�?�?�	��c�N�|�d��}|�tj||��rdSt|�dd����dks4|�dd��dkr5|�d	d��d
kr|�tj||��sdSdSdS)apLimit targets for Xcode wrapper.

  Xcode sometimes performs poorly with too many targets, so only include
  proper executable targets, with filters to customize.
  Arguments:
    target_extras: Regular expression to always add, matching any target.
    executable_target_pattern: Regular expression limiting executable targets.
    spec: Specifications for target.
  r,NTr:rr>��
executabler.�bundleF)rL�re�search�int)�
target_extras�executable_target_pattern�specr,s    r'�IsValidTargetForWrapperrd�s�������'�'�+���2�9�]�K�#H�#H���4�
�$�(�(�&��
*�
*�+�+�q�0�0��x�x�����|�+�+��x�x�#�R�(�(�H�4�4�!�,�
�Y�0�+�
>�
>���u��4�	�rYc���!�"�|dd}|���D]\}}||kr|d}�|�di��}|�dd��}	|	�*tj�|��\}
}|
dz|z}	g}i}
i}i||	<g||	d<g||	d	<||�d
i��||	d
<|�dd��}|�dd��}|D]�}||}t|||��r�|�d
��}|	�d|�d�}|�|��t||��|
|<||�d��dd	D]G}|d
|kr9i}|d
|d
<|d|d<||	d	�|���H��d}t|ddddd�d��}dd|gii|d<|�dd��}g}|���D�]>\}}tj�	|���!|�dg��|�dg��z}|s@|�
|�dg��|�dg��z��|�dg��D]V}|�
|�d g����|s)|�
|�d!g�����Wd"�|D��}tj�	|	���"|�!�"fd#�|D��z
}��@tt|����|d<tj�
tj�	|	��|d$z��}|�d|�d�} |�| ��||
| <i}|d
|d
<||d<d|d<i||<g||d	<g||d<||�d
i��||d
<||d	�|��t|	||��||
|fS)%a�Initialize targets for the ninja wrapper.

  This sets up the necessary variables in the targets to generate Xcode projects
  that use ninja as an external builder.
  Arguments:
    target_list: List of target pairs: 'base/base.gyp:base'.
    target_dicts: Dict of target properties keyed on target pair.
    data: Dict of flattened build files keyed on gyp path.
    params: Dict of global options for gyp.
  �build_filesr�_DEPTHr*�xcode_ninja_main_gypNz.ninja�included_files�targetsr3�%xcode_ninja_executable_target_pattern�xcode_ninja_target_patternr,�:z#targetr/�sources_for_indexing�target�Default�0r\)r,r/r0r9r>�include_dirsr1�xcode_ninja_list_excluded_filesT�sources�mac_bundle_resources�sources_excluded�mac_bundle_resources_excludedrGrC�inputs_excludedc�<�g|]}|�d���|��S)�$)�
startswith)�.0�files  r'�
<listcomp>z!CreateWrapper.<locals>.<listcomp>s)��A�A�A�t�D�O�O�C�,@�,@�A�d�A�A�ArYc���g|]@}tj�tj��|�������AS�)rr�relpathr)r|r}�base�
relative_paths  ��r'r~z!CreateWrapper.<locals>.<listcomp>sI���(�(�(����������d�D�!9�!9�=�I�I�(�(�(rYz.gyp)�itemsrLrrr	rd�appendrX�split�dirnamerO�sorted�setrr()#�target_list�target_dicts�datar�orig_gypr!�gyp_dict�depthr*rrr�new_target_list�new_target_dicts�new_datarbra�old_qualified_targetrcr,�new_target_name�
old_target�new_data_target�sources_target_name�sources_target�skip_excluded_filesrtro�target_dict�filesrEr�fully_qualified_target_namer�r�s#                                 @@r'�
CreateWrapperr��se�����M�
"�1�
%�(� �J�J�L�L�!�!��h���8����x� �e���J�J�0�"�5�5�/�
�
 �
 �!7��
>�
>�(�
��(*��(8�(8��(B�(B�%�_�n���)�N�:�H��/���
�(��(�8��)+�(�8��%�&�"$�(�8��Y��
�8�n���)�2�.�.��8��%�&����A�4�H�H��
"�%�%�&B�D�I�I�-�)�@�@���,�-�D��}�.G��N�N�@��H�H�]�+�+�k�*2�(�(�K�K�K�@�o����_�-�-�-�+:�$��*G�*G���'��1�7�7��<�<�Q�?�@��K�@�@�*��m�$��3�3��/�+5�m�+D�/�-�
(�'1�)�'<�/�)�
$�
�8�
�Y�
'�
.�
.��
?�
?�
?���/��"�)��(���	��
�

�
�.�'0�>�U�9�1N�%P�.�!�"��
�
�?��
F�
F�F��
�'�)�/�/�1�1�(�(��f�k�
�7�?�?�6�"�"�D��O�O�I�r�*�*��O�O�2�B�7�7�
8�E��I��l�l�;�?�?�#5�r�:�:��?�?�#B�B�G�G�H�I�I�I��/�/�)�R�0�0�8�8���l�l�6�:�:�h��+�+�,�,�,�
 �8�
���V�Z�Z� 1�2�6�6�7�7�7��
B�A�u�A�A�A�E��G�O�O�H�-�-�M��(�(�(�(�(� %�(�(�(�(�G�G�%�S��\�\�2�2�.���	�g�l�l�2�7�?�?�8�,�,�.A�F�.J�K�K��$���%8�%8�%8�9�����4�5�5�5�2@��.�/��/�#1�-�#@�/�-� �#�/�(��'�/�)���(�;��%'�(�;��	�"�,.�(�;��(�)�
�8�n���)�2�.�.��;��(�)�
�;��	�"�)�)�/�:�:�:��(�K��0�0�0�
�+�X�	6�6rY)�__doc__r�gyp.generator.ninjarIrr^�xml.sax.saxutilsrr(rXrdr�r�rYr'�<module>r�s���
��
��������	�	�	�	�	�	�	�	����� %� %� %�DI�I�I�V���6C7�C7�C7�C7�C7rY