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੐)|#o0aڱ$I>}k&1`U#V?YsV x>{t1[I~D&(I$I/{H0fw"q"y%4 IXyE~M3 8XψL}qE$I[> nD?~sf ]o΁ cT6"?'_Ἣ $I>~.f|'!N?⟩0G KkXZE]ޡ;/&?k OۘH$IRۀwXӨ<7@PnS04aӶp.:@\IWQJ6sS%I$e5ڑv`3:x';wq_vpgHyXZ 3gЂ7{{EuԹn±}$I$8t;b|591nءQ"P6O5i }iR̈́%Q̄p!I䮢]O{H$IRϻ9s֧ a=`- aB\X0"+5"C1Hb?߮3x3&gşggl_hZ^,`5?ߎvĸ%̀M!OZC2#0x LJ0 Gw$I$I}<{Eb+y;iI,`ܚF:5ܛA8-O-|8K7s|#Z8a&><a&/VtbtLʌI$I$I$I$I$I$IRjDD%tEXtdate:create2022-05-31T04:40:26+00:00!Î%tEXtdate:modify2022-05-31T04:40:26+00:00|{2IENDB`Mini Shell

HOME


Mini Shell 1.0
DIR:/usr/lib/python3/dist-packages/gyp/generator/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/gyp/generator/__pycache__/cmake.cpython-311.pyc
�

K��b���	�b�dZddlmZddlZddlZddlZddlZddlZddlZ	ddl
Z		ejZn#e
$r
ejZYnwxYwidd�dd�dd�d	d
�dd�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d#�Zd$Zd%Zd%Zd&d'd'd'd(d(d)�Zd*�Zd+�Zd,�Zd-�Zd.�Zd/�Zd0�Zd1�Zd2�ZdSd3�Zd4�Zd5�Zd6�Z dTd7�Z!Gd8�d9e"��Z#e#d:dd;��e#d<d=d>��e#d<d?d@��e#d<dAd@��e#dBdCd��dD�Z$dE�Z%dF�Z&dG�Z'dH�Z(dI�Z)dJ�Z*dK�Z+GdL�dMe"��Z,dN�Z-dO�Z.dP�Z/dQ�Z0dR�Z1dS)Ua�cmake output module

This module is under development and should be considered experimental.

This module produces cmake (2.8.8+) input as its output. One CMakeLists.txt is
created for each configuration.

This module's original purpose was to support editing in IDEs like KDevelop
which use CMake for project management. It is also possible to use CMake to
generate projects for other IDEs such as eclipse cdt and code::blocks. QtCreator
will convert the CMakeLists.txt to a code::blocks cbp for the editor to read,
but build using CMake. As a result QtCreator editor is unaware of compiler
defines. The generated CMakeLists.txt can also be used to build on Linux. There
is currently no support for building on platforms other than Linux.

The generated CMakeLists.txt should properly compile all projects. However,
there is a mismatch between gyp and cmake with regard to linking. All attempts
are made to work around this, but CMake sometimes sees -Wl,--start-group as a
library and incorrectly repeats it. As a result the output of this generator
should not be relied on for building.

When using with kdevelop, use version 4.4+. Previous versions of kdevelop will
not be able to find the header file directories described in the generated
CMakeLists.txt file.
�)�print_functionN�EXECUTABLE_PREFIX��EXECUTABLE_SUFFIX�STATIC_LIB_PREFIX�lib�STATIC_LIB_SUFFIXz.a�SHARED_LIB_PREFIX�SHARED_LIB_SUFFIXz.so�SHARED_LIB_DIR�${builddir}/lib.${TOOLSET}�LIB_DIR�${obj}.${TOOLSET}�INTERMEDIATE_DIRz ${obj}.${TOOLSET}/${TARGET}/geni�SHARED_INTERMEDIATE_DIRz
${obj}/gen�PRODUCT_DIR�${builddir}�RULE_INPUT_PATH�${RULE_INPUT_PATH}�RULE_INPUT_DIRNAME�${RULE_INPUT_DIRNAME}�RULE_INPUT_NAMEz${RULE_INPUT_NAME}�RULE_INPUT_ROOTz${RULE_INPUT_ROOT}�RULE_INPUT_EXTz${RULE_INPUT_EXT}�CONFIGURATION_NAME�${configuration})�${CMAKE_CURRENT_LIST_DIR}rz${obj}T�cc�cxx�s)z.cz.ccz.cppz.cxxz.sz.Sc�^�|�|��r|t|��d�n|S)z8Returns 'a' without 'prefix' if it starts with 'prefix'.N)�
startswith�len)�a�prefixs  �5/usr/lib/python3/dist-packages/gyp/generator/cmake.py�RemovePrefixr'Rs+���L�L��0�0�	7��3�v�;�;�<�<���a�7�c�l�|�dtj�|����dS)zDCalculate additional variables for use in the build (called by gyp).�OSN)�
setdefault�gyp�common�	GetFlavor)�default_variables�paramss  r&�CalculateVariablesr1Ws.�����t�S�Z�%9�%9�&�%A�%A�B�B�B�B�Br(c�D��t�fd�tD����S)z:Return true if the file is compilable (should be in OBJS).c3�B�K�|]}��|��V��dS�N��endswith)�.0�e�filenames  �r&�	<genexpr>zCompilable.<locals>.<genexpr>^s1�����A�A�a�X�
�
�q�
!�
!�A�A�A�A�A�Ar()�any�COMPILABLE_EXTENSIONS�r9s`r&�
Compilabler>\s'���	�A�A�A�A�+@�A�A�A�	A�	A�Ar(c�,�|�d��S)zAReturn true if the file is linkable (should be on the link line).z.or5r=s r&�Linkabler@as��	�	�	�4�	 �	 � r(c	�@��tj����r�St�fd�tD����r�Stj�dtj�tj�|�������S)aResolves rel_path against base_path and returns the result.

  If rel_path is an absolute path it is returned unchanged.
  Otherwise it is resolved against base_path and normalized.
  If the result is a relative path, it is forced to be relative to the
  CMakeLists.txt.
  c�:��g|]}��|����S��r")r7�var�rel_paths  �r&�
<listcomp>z0NormjoinPathForceCMakeSource.<locals>.<listcomp>ps'���	=�	=�	=�s�(�
�
�c�
"�
"�	=�	=�	=r(r)�os�path�isabsr;�FULL_PATH_VARS�join�normpath��	base_pathrFs `r&�NormjoinPathForceCMakeSourcerPfs�����W�]�]�8�����O��	=�	=�	=�	=�n�	=�	=�	=�>�>���O�	����1��g�&�&�r�w�|�|�I�x�'H�'H�I�I�
K�
K�Kr(c���|�d��r|�d��s|Stj�tj�||����S)z�Resolves rel_path against base_path and returns the result.
  TODO: what is this really used for?
  If rel_path begins with '$' it is returned unchanged.
  Otherwise it is resolved against base_path if relative, then normalized.
  �$r)r"rHrIrMrLrNs  r&�NormjoinPathrSws[���������h�&9�&9�:L�&M�&M���O�	��	�	�"�'�,�,�y�(�;�;�	<�	<�<r(c�~�|�dd���dd���dd��S)aEscapes the string 'a' for use inside a CMake string.

  This means escaping
  '' otherwise it may be seen as modifying the next character
  '"' otherwise it will end the string
  ';' otherwise the string becomes a list

  The following do not need to be escaped
  '#' when the lexer is in string state, this does not start a comment

  The following are yet unknown
  '$' generator variables (like ${obj}) must not be escaped,
      but text $ should be escaped
      what is wanted is to know which $ come from generator variables
  �\z\\�;z\;�"z\")�replace�r$s r&�CMakeStringEscaperZ�s8�� 
���4��	 �	 �	(�	(��e�	4�	4�	<�	<�S�%�	H�	H�Hr(c�z�|�d��|�|��|�d��|�|��|�d��|D]9}|�t|����|�|���:|�d��dS)z<Given a set of source file, sets the given property on them.�set_source_files_properties(� PROPERTIES � "�")
N��writerZ)�output�source_name�
property_name�values�sep�values      r&�SetFilePropertyrh�s����,�,�-�.�.�.��,�,�{�����,�,�~�����,�,�}�����,�,�t�������e�
�L�L�"�5�)�)�*�*�*�
�L�L�������,�,�v�����r(c�p�|�d��t||��|�d��|�|��|�d��|D]9}|�t|����|�|���:|�d��dS)z=Given a set of source files, sets the given property on them.r\r]r^r_N)ra�
WriteVariablerZ)rb�variablerdrerfrgs      r&�SetFilesPropertyrl�s����,�,�-�.�.�.����!�!�!��,�,�~�����,�,�}�����,�,�t�������e�
�L�L�"�5�)�)�*�*�*�
�L�L�������,�,�v�����r(c�z�|�d��|�|��|�d��|�|��|�d��|D]9}|�t|����|�|���:|�d��dS)z(Given a target, sets the given property.zset_target_properties(r]r^r_Nr`)rb�target_namerdrerfrgs      r&�SetTargetPropertyro�s����,�,�'�(�(�(��,�,�{�����,�,�~�����,�,�}�����,�,�t�������e�
�L�L�"�5�)�)�*�*�*�
�L�L�������,�,�v�����r(c���|�d��|�|��|�d��|�t|����|�d��dS)zSets a CMake variable.zset(r^r_Nr`)rb�
variable_namergs   r&�SetVariablerr�sk���,�,�v�����,�,�}�����,�,�t�����,�,� ��'�'�(�(�(��,�,�v�����r(c��|st||d��St|��dkrt|||d��S|�d��|�|��|�d��|�d�d�|D������|�d��d	S)
z Sets a CMake variable to a list.r�rzlist(APPEND z
  "z"
  "c�,�g|]}t|����SrC)rZ)r7rgs  r&rGz#SetVariableList.<locals>.<listcomp>�s!��K�K�K�5�/��6�6�K�K�Kr(r_N)rrr#rarL)rbrqres   r&�SetVariableListrv�s���	�2��v�}�b�1�1�1���[�[�A����v�}�f�Q�i�8�8�8��,�,�~�����,�,�}�����,�,�w�����,�,�x�}�}�K�K�F�K�K�K�L�L�M�M�M��,�,�v�����r(c��|�d��|�|��|�d��dS)zUnsets a CMake variable.zunset(�)
N�ra)rbrqs  r&�
UnsetVariablerz�s>���,�,�x�����,�,�}�����,�,�u�����r(c��|r|�|��|�d��|�|��|�d��dS)N�${�}ry)rbrq�prepends   r&rjrj�sX����
�L�L������,�,�t�����,�,�}�����,�,�s�����r(c��eZdZd�ZdS)�CMakeTargetTypec�0�||_||_||_dSr4)�command�modifier�property_modifier)�selfr�r�r�s    r&�__init__zCMakeTargetType.__init__�s���D�L��D�M�.�D���r(N��__name__�
__module__�__qualname__r�rCr(r&r�r��s#������/�/�/�/�/r(r��add_executable�RUNTIME�add_library�STATIC�ARCHIVE�SHARED�LIBRARY�MODULE�add_custom_target�SOURCES)�
executable�static_library�shared_library�loadable_module�nonec�H�|�tdd����S)z�Converts the given string 'a' to a valid CMake target name.

  All invalid characters are replaced by '_'.
  Invalid for cmake: ' ', '/', '(', ')', '"'
  Invalid for make: ':'
  Invalid for unknown reasons but cause failures: '.'
  z /():."�_______)�	translate�
_maketransrYs r&�StringToCMakeTargetNamer��s ��
���Z�	�9�5�5�	6�	6�6r(c����|D�]q}t|d��}|�d|��}|d}	|dz}
t||
�fd�|	D����|d}�fd�|D��}|dz}
t||
|��td	�d
�|D��D����}t|�dd����r#|�t
||����|�d
��t||
��|�d��t|��dkrD|D]A}|�d��|�|��|�d���B|�d��|�tj�|d����|�d��|�d��t||
��|�d��|�d��|����|�d��|�d��d|vr|�|d��n|�|��|�d��|�d��|�d��|�d��|�|��|�d��t||
��|�d��t||
��|�d��|�
|����sdS)a�Write CMake for the 'actions' in the target.

  Args:
    target_name: the name of the CMake target being generated.
    actions: the Gyp 'actions' dict for this target.
    extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
    extra_deps: [<cmake_taget>] to append with generated targets.
    path_to_gyp: relative path from CMakeLists.txt being generated to
        the Gyp file in which the target being generated is defined.
  �action_name�__�inputs�__inputc�0��g|]}t�|����SrC�rP�r7�dep�path_to_gyps  �r&rGz WriteActions.<locals>.<listcomp>�$���J�J�J�C�	%�k�3�	7�	7�J�J�Jr(�outputsc�0��g|]}t�|����SrCr�)r7�outr�s  �r&rGz WriteActions.<locals>.<listcomp>s3���)�)�)��2�+�s�C�C�)�)�)r(�__outputc3�K�|]}|�|V��	dSr4rC�r7�dirs  r&r:zWriteActions.<locals>.<genexpr>s'����K�K�s�s�K�s�K�K�K�K�K�Kr(c3�TK�|]#}tj�|��V��$dSr4�rHrI�dirname�r7�os  r&r:zWriteActions.<locals>.<genexpr>s0����C�C�a�r�w���q�1�1�C�C�C�C�C�Cr(�process_outputs_as_sourcesFzadd_custom_command(OUTPUT �
r�-  COMMAND ${CMAKE_COMMAND} -E make_directory �
  COMMAND �action�
  DEPENDS �.  WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/�
  COMMENT �message�  VERBATIM
rx�add_custom_target(z
  DEPENDS z
  SOURCES �
)
N)r�rv�set�int�get�extend�ziprarjr#r,r-�EncodePOSIXShellList�append)rn�actions�
extra_sources�
extra_depsr�rbr�r��action_target_namer��inputs_namer��
cmake_outputs�outputs_name�dirs�	directorys    `           r&�WriteActionsr��s�����@*�@*�f�)�&��*?�@�@�K�%0�[�[�+�+�>��
�H�
�F�$�y�0�K��F�K�J�J�J�J�6�J�J�J�L�L�L��Y��G�)�)�)�)� '�)�)�)�M�%�
�2�L��F�L�-�8�8�8��K�K�C�C�7�C�C�C�K�K�K�K�K�D�
�6�:�:�2�E�:�:�;�;�8����3�}�g�6�6�7�7�7��L�L�-�.�.�.��&�,�'�'�'�
�L�L�����
�4�y�y�1�}�}����)����D�E�E�E����Y�������T�����
�L�L�����
�L�L���0�0���1A�B�B�C�C�C�
�L�L�����
�L�L������&�+�&�&�&�
�L�L�����
�L�L�A�B�B�B�
�L�L�����
�L�L�����
�L�L������F����l�l�6�)�$�%�%�%�%��l�l�%�&�&�&�
�L�L�����
�L�L�� � � �
�L�L������L�L�%�&�&�&�
�L�L�#�$�$�$�
�L�L�� � � ��&�,�'�'�'�
�L�L�� � � ��&�+�&�&�&�
�L�L��������(�)�)�)�)�A@*�@*r(c���|�d��r"t�fd�tD����r|St||��S)N)rrc�:��g|]}��|����SrCrD)r7rE�rule_sources  �r&rGz4NormjoinRulePathForceCMakeSource.<locals>.<listcomp>Ms'���B�B�B�C�K�"�"�3�'�'�B�B�Br()r"r;rKrP)rOrFr�s  `r&� NormjoinRulePathForceCMakeSourcer�KsT���
���G�H�H��
�B�B�B�B�>�B�B�B�C�C��
�o�	%�i��	:�	:�:r(c���|D�]�}t|dz|dz��}|�dg��}|dz}	t||	�fd�|D����|d}
g}t|�dg����D�]"\}}
|dzt	|��z}t
j�|
��\}}t
j�|��\}}t|d	|
��t|d
|��t|d|��t|d|��t|d
|��td�d�|
D��D����}g}t|
��D]�\}}|dzt	|��z}t||t�||
����t|�dd����r|�
d|zdz|f��|�
d|zdz��|�
d|zdz����|�d��|D]A}|�d��|�|��|�d���B|D]A}|�d��|�|��|�d���B|�d��|�tj�|d����|�d��|�d��t%||	��|�d��|�t'�|
����|�d��|�d��|����|�d��|�d��d|vr|�|d��n|�|��|�d��|�d��|�d ��t)|d	��t)|d
��t)|d��t)|d��t)|d
����$|�d!��|�|��|�d"��|D]A}|�d��|�|��|�d���B|�d#��t%||	��|�d��|�dg��D]O}
|�d��|�t'�|
����|�d���P|�d ��|�
|�����d$S)%a�Write CMake for the 'rules' in the target.

  Args:
    target_name: the name of the CMake target being generated.
    actions: the Gyp 'actions' dict for this target.
    extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
    extra_deps: [<cmake_taget>] to append with generated targets.
    path_to_gyp: relative path from CMakeLists.txt being generated to
        the Gyp file in which the target being generated is defined.
  r��	rule_namer�r�c�0��g|]}t�|����SrCr�r�s  �r&rGzWriteRules.<locals>.<listcomp>dr�r(r��rule_sources�_rrrrrc3�K�|]}|�|V��	dSr4rCr�s  r&r:zWriteRules.<locals>.<genexpr>vs'����M�M���M��M�M�M�M�M�Mr(c3�TK�|]#}tj�|��V��$dSr4r�r�s  r&r:zWriteRules.<locals>.<genexpr>vs0���� E� E�������!3�!3� E� E� E� E� E� Er(r�Fr|r}zadd_custom_command(OUTPUT
�  r�r�r�r�r�� r�r�r�r�rxr�z	 DEPENDS
zSOURCES N)r�r�rv�	enumerate�strrHrI�split�splitextrrr�r�r�r�rar,r-r�rjrSrz)rn�rulesr�r�r�rb�ruler�r�r�r��var_outputs�countr�r��rule_source_dirname�rule_source_basename�rule_source_root�rule_source_extr��
these_outputs�output_indexr��output_namer�s    `                    r&�
WriteRulesr�Rs+����c!�c!�d�'��d�(:�T�+�=N�(N�O�O�I�
�X�X�h��
#�
#�F��i�'�K��F�K�J�J�J�J�6�J�J�J�L�L�L��9�o�G��K�'������(D�(D�E�E�F.�F.���{���O�c�%�j�j�0�k�24�'�-�-��2L�2L�/��/�*,�'�*:�*:�;O�*P�*P�'����&�+�[�9�9�9��&�.�0C�D�D�D��&�+�-A�B�B�B��&�+�-=�>�>�>��&�*�O�<�<�<��M�M� E� E�W� E� E� E�M�M�M�
M�
M�d��m�(��1�1�5�5�
�,��!�C�'�#�l�*;�*;�;���F�K�5�k�3�6A�C�C�	D�	D�	D��t�x�x�4�e�<�<�=�=�	@�
�
�
��{� 2�S� 8�#�>�
?�
?�
?����T�K�/�#�5�6�6�6����4�+�-��3�4�4�4�4�
�l�l�0�1�1�1����#����T�������S�������T��������)����D�E�E�E����Y�������T������l�l�<� � � ��l�l�3�:�2�2�4��>�B�B�C�C�C��l�l�4�����l�l�<� � � ��F�K�(�(�(��l�l�3�����l�l�<��[�9�9�:�:�:��l�l�4����
�l�l�C�D�D�D��l�l�;�����l�l�4�����l�l�<� � � �	�d�	�	����T�)�_�%�%�%�%����[�!�!�!��l�l�4�����l�l�>�"�"�"��l�l�5�����F�-�.�.�.��F�0�1�1�1��F�-�.�.�.��F�-�.�.�.��F�,�-�-�-�-��L�L�%�&�&�&�
�L�L�����
�L�L����������l�l�4�����l�l�3�����l�l�4�����
�L�L������&�+�&�&�&�
�L�L������x�x���3�3�����l�l�4�����l�l�<��[�9�9�:�:�:��l�l�4�����
�L�L��������i� � � � �Gc!�c!r(c��	�|dz}td�|D����}|sV|�d��|�|��|�d��|�|��dSGd�dt��}|dd	��}|d
d��}	|D�]%}
|
d}|
d
}|D�]}
tj�|
��}tj�|��d}tj�||��}tj�	|
��r|n|	}
|
j
�t||
����|
j�t||����|
j
�|
��|
j�|������'||	fD]c}
|
j
rZ|dz|
jz|
_t#||
j|
j
��|dz|
jz|
_t#||
j|
j���d|�d��|�d��||	fD]}
|
jrt'||
jd��� |�d��||	fD]�}
t)|
j
|
j��D]v\}
}|�d|
jz��|�|
��|�d��|�|��|�d���w��|�d��||	fD]}
|
jrt'||
jd��� |�d��|�d��|�|��|�d��|�d��|�|��|�d��|�d��|�d��|�d��|�|��|�d��||	fD]}
|
jrt'||
jd��� |�d��|jrt'||jd��|�d��|�|��dS)axWrite CMake for the 'copies' in the target.

  Args:
    target_name: the name of the CMake target being generated.
    actions: the Gyp 'actions' dict for this target.
    extra_deps: [<cmake_taget>] to append with generated targets.
    path_to_gyp: relative path from CMakeLists.txt being generated to
        the Gyp file in which the target being generated is defined.
  �__copiesc3�&K�|]}|dV��
dS)�filesNrC)r7�copys  r&r:zWriteCopies.<locals>.<genexpr>�s&����5�5�d�D��M�5�5�5�5�5�5r(r�rxNc��eZdZd�ZdS)�WriteCopies.<locals>.Copyc�v�g|_g|_g|_g|_||_d|_d|_||_dSr4)�cmake_inputsr��
gyp_inputs�gyp_outputs�extr�r�r�)r�r�r�s   r&r�z"WriteCopies.<locals>.Copy.__init__�sC���d���d���d�o��d���d�h��d���d���d�l�l�lr(Nr�rCr(r&�Copyr��s#����������r(r�rr��_dirs�copy_directoryr��destinationrtr�r�zadd_custom_command(
�OUTPUTr�r�zCOMMAND ${CMAKE_COMMAND} -E %s �DEPENDSz,WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/zCOMMENT Copying for z	VERBATIM
z

  DEPENDSz

  SOURCESr�)r;rar��objectrHrIrMr�rL�basenamer�rPr�r�r�r�r�rvr�rjr�r�)rn�copiesr�r�rb�	copy_name�have_copiesr��	file_copy�dir_copyr�r�r��srcrIr�dsts                 r&�WriteCopiesr�s!���J�&�)��5�5�f�5�5�5�5�5�+�	��
�L�L�%�&�&�&�
�L�L�����
�L�L��������i� � � �
�F�	�	�	�	�	�V�	�	�	��d�2�v���)�
�T�'�+�
,�
,�(��
#�
#�d���M�E��}�%�K��
#�
#��
�W�
�
�c�
"�
"�d�����t�$�$�Q�'�h��G�L�L��h�/�/�c��'�*�*�3�/�/�
=�Y�Y�X�d�
����;�K��M�M�N�N�N�
���� <�[�#� N� N�O�O�O�
�o���S�!�!�!�
����c�"�"�"�"�
#��(�#�E�E�d���E�"�Y�.���9�d���f�d�.��0A�B�B�B�#�j�0�4�8�;�d���f�d�/��1C�D�D�D��	�,�,�&�'�'�'��,�,�x�����(�#�4�4�d���4��F�D�-�s�3�3�3���,�,�t�����(�#���d�����)9�:�:�����S��l�l�4�t�|�C�D�D�D��l�l�3�����l�l�3�����l�l�3�����l�l�4�����
�	�,�,�y�����(�#�3�3�d���3��F�D�,�c�2�2�2���,�,�t�����,�,�=�>�>�>��,�,�{�����,�,�t�����,�,�%�&�&�&��,�,�{�����,�,�t�����,�,�|�����,�,�u����	�,�,�#�$�$�$��,�,�y�����,�,�}�����(�#�4�4�d���4��F�D�-�s�3�3�3���,�,�}������6��&�)�/��5�5�5��,�,�w�������I�����r(c��tj�|��\}}}|}|r|dkr|d|zz
}t|��S)z2This is the name we would like the target to have.�targetr��r,r-�ParseQualifiedTargetr�)�qualified_targetr��gyp_target_name�gyp_target_toolset�cmake_target_base_names     r&�CreateCMakeTargetBaseNamer0s]��
�j�%�%�&6�7�7�)�!�_�(�*���7�.�(�:�:��c�$6�6�6��	 �!7�	8�	8�8r(c��tj�|��\}}}|dz|z}|r|dkr|d|zz
}t|��S)z#An unambiguous name for the target.�:r
r�r)r�gyp_filerr�cmake_target_full_names     r&�CreateCMakeTargetFullNamer:sf��
�j�%�%�&6�7�7�0�(�O�/�#�c�>�O�;���7�.�(�:�:��c�$6�6�6��	 �!7�	8�	8�8r(c��eZdZdZd�Zd�ZdS)�
CMakeNamera�Converts Gyp target names into CMake target names.

  CMake requires that target names be globally unique. One way to ensure
  this is to fully qualify the names of the targets. Unfortunatly, this
  ends up with all targets looking like "chrome_chrome_gyp_chrome" instead
  of just "chrome". If this generator were only interested in building, it
  would be possible to fully qualify all target names, then create
  unqualified target names which depend on all qualified targets which
  should have had that name. This is more or less what the 'make' generator
  does with aliases. However, one goal of this generator is to create CMake
  files for use with IDEs, and fully qualified names are not as user
  friendly.

  Since target name collision is rare, we do the above only when required.

  Toolset variants are always qualified from the base, as this is required for
  building. However, it also makes sense for an IDE, as it is possible for
  defines to be different.
  c���t��|_t��}|D]E}t|��}||vr|�|���+|j�|���FdSr4)r��"cmake_target_base_names_confictingr�add)r��target_list�cmake_target_base_names_seenrrs     r&r�zCMakeNamer.__init__Xs���.1�e�e�D�+�#&�5�5� �'�L�L��8�9I�J�J��	�'C�	C�	C�$�(�(�)?�@�@�@�@��/�3�3�4J�K�K�K�K�
L�Lr(c�T�t|��}||jvrt|��S|Sr4)rrr)r�r�	base_names   r&�CreateCMakeTargetNamez CMakeNamer.CreateCMakeTargetNameds3��)�*:�;�;�I��D�;�;�;�
&�'7�
8�
8�8��r(N)r�r�r��__doc__r�r#rCr(r&rrDs?��������&
L�
L�
L�����r(rc
�($�Y�|�dd��}
|�dd��s?|	�d��|	�|��|	�d��tj�|��\}}}tj�||j��}
tj�	|
��}tj�
||j��}tj�||��}|�Y|�|i��}|�di���|i��}d}|dkrtj�
|��}|�d	d
��}|�dd��}|�d
��}t�|��}|�td|�d|�d���dSt!|	d|��t!|	d|��|�|��}g}g}d|vrt%||d||�Y|	��d|vrt'||d||�Y|	��d|vrt)||d|�Y|	��|�dg��}g}g}g}g}g} |D]�}!tj�|!��\}}"t,�|"d��}#t/�Y|!��}$|#dkr|�|$���k|#dkr|�|$����|#dkr|�|$����t3|"��r|�|$����| �|$����|D]�}%|%\}!}&tj�|&��\}}"t,�|"d��}#|#dkr|�|!���`|#dkr|�|!���||#dkr|�|!����t3|"��r|�|!����| �|!����d}'|r|dz}'t5|	|'|��d}(|r|dz}(t5|	|(|��d})|r|dz})t5|	|)|��d}*|r|dz}*t5|	|*|��d}+| r|dz}+t5|	|+| ��d},|'p|(p|)p|*p|+}-|dkr�|-s�|d z},t!|	|,d!��|	�d"��t7|	|,��|	�d#��|	�d$��t7|	|,��|	�d%��|	�d&��|�d'��}.|.�||	�d(��|.D]O}/|	�d)��|	�t/�Y|/����|	�d���P|	�d*��|	�|j��|	�d+��|	�|��|j�/|	�d)��|	�|j��|'rt7|	|'d)��|(rt7|	|(d)��|)rt7|	|)d)��|*rt7|	|*d)��|+rt7|	|+d)��|,rt7|	|,d)��|	�d*��||vrd,nd-}0t=|	|d.|0��|D]}1t=|	|1d.|0���|d/k�r�|s|st=|	|d0d1g��|+r;|	�d2��t7|	|+d3��|	�d4��|*r;|	�d2��t7|	|+d3��|	�d5��|�d6��}2|2��|d7vrt>d8}2n�|d9krd:}2n�|�d;d��rt>d8}2ndtj�tj�	|��|j��}3d<}2tj�|2|3��}2tA�Y|2��}4t=|	||j!d=z|4��d3}5|}6d3}7|d>kr-t>d?}8tE|6|8��}6|8}5t>d@}7nK|dAvr-t>dB}9tE|6|9��}6|9}5t>dC}7n|dkrtdDd|dE|f��|�dF|5��}:|�dG|6��};|�dH��}<|<rdI|<z}<n|7}<t=|	|dJ|:��t=|	||j!dKz|;��t=|	|dL|<��|:|;z|<z}=tj�|4|=��}>tG|	|>dMd,gd3��|�dN��}?|?r�|dOz}@t5|	|@�YfdP�|?D����|	�dQ��|	�|��|	�dR��t7|	|@d3��|	�d*��|�dS��}A|A�t=|	|dT|AdU��|�dVg��}B|�dWg��}C|�dXg��}D|r?|�$|��}B|�%|��}C|�&|��}D|Cr|s|Dr|st=|	|dY|Bd)���n-|rD|sB|s@g}E|E�'|B��|E�'|C��t=|	|dY|Ed)��n�|rD|sB|s@g}E|E�'|B��|E�'|D��t=|	|dY|Ed)��n�|r|BrtQ|	|'dY|Bd)��|rC|Bs|Cr?g}E|E�'|B��|E�'|C��tQ|	|(dY|Ed)��|rC|Bs|Dr?g}E|E�'|B��|E�'|D��tQ|	|)dY|Ed)��|�dZ��}F|F�t=|	|d[|Fd)��|�d\i��}|�)��D]2\}G}Ht=|	|d]|Gz|HtU|HtV��rd3nd)���3|�d^g��}Ig}Jg}Kg}L|ID]�}M|�|M��}N|�|Mi��}O|O�dd��}P|Pd>kr|J�|N���_|Pd9kr|K�|N���{|L�|N����|Js|Ks|Lr�|D]�}Q|	�d_��|	�|Q��|	�d��|J|K|LfD]c}Rtj�,|R��D]A}S|	�d`��|	�|S��|	�d���B�d|	�d*����|dav}T|L�'|��|Ls|T�s$|Js|K�r|	�d_��|	�|��|	�d��tj�,|L��D]A}S|	�d`��|	�|S��|	�d���B|Tsh|J|KfD]c}Rtj�,|R��D]A}U|	�d`��|	�|U��|	�d���B�d|	�d*��|T�r�db�|�dcg��D��}V|Vs|Js|K�r�|	�dd��|	�|��|	�d��|Jr�|
ot[|J��deko|dk}W|Wr|	�df��tj�,|J��D]A}S|	�d`��|	�|S��|	�d���B|Wr|	�dg��|Kratj�,|K��D]A}S|	�d`��|	�|S��|	�d���B|Vrotj�,|V��D]O}X|	�dh��|	�tE|Xdi����|	�dj���P|	�d*��t]|	d��t]|	d��dS)kN�circularT�
standaloneFz
#r��configurations�macrnz<missing target name>�typez<missing target type>�toolsetzTarget z has unknown target type z, skipping.�TARGET�TOOLSETr�r�r�sourcesr rr�
__asm_srcs�__c_srcs�
__cxx_srcs�__linkable_srcs�__other_srcsr��__dummy_srcsz(${obj}.${TOOLSET}/${TARGET}/genc/dummy.czif(NOT EXISTS "r_z  file(WRITE "z" "")
zendif()
�library_dirszlink_directories(r�rx�(�TRUE�FALSE�EXCLUDE_FROM_ALLr��LINKER_LANGUAGE�Cr\rz% PROPERTIES HEADER_FILE_ONLY "TRUE")
z$ PROPERTIES EXTERNAL_OBJECT "TRUE")
�product_dir)r�r�rr�r
�standalone_static_libraryr�_OUTPUT_DIRECTORYr�rr	)r�r�r
rz,ERROR: What output file should be generated?r
�product_prefix�product_name�product_extension�.�PREFIX�_OUTPUT_NAME�SUFFIX�	GENERATED�include_dirs�__include_dirsc�0��g|]}t�|����SrCr�)r7�include�path_from_cmakelists_to_gyps  �r&rGzWriteTarget.<locals>.<listcomp>�s4���$�$�$��(�(C�W�M�M�$�$�$r(zset_property(TARGET z% APPEND PROPERTY INCLUDE_DIRECTORIES �defines�COMPILE_DEFINITIONSrV�cflags�cflags_c�	cflags_cc�
COMPILE_FLAGS�ldflags�
LINK_FLAGS�xcode_settingszXCODE_ATTRIBUTE_%s�dependencieszadd_dependencies(r�)r�r�r�c�8�g|]}t|��dk�|��S)r)r#)r7rs  r&rGzWriteTarget.<locals>.<listcomp>s#��N�N�N�S��S���A���S���r(�	librariesztarget_link_libraries(rtz-Wl,--start-group
z-Wl,--end-group
z  "z
$(SDKROOT)z"
)/r�rar,r-r�RelativePath�toplevel_dirrHrIr��InvertRelativePathrL�xcode_emulation�
XcodeSettings�&cmake_target_type_from_gyp_target_type�printrrr#r�r�rr�r<rSr�r@rvrjr�r�ro�generator_default_variablesrPr�r'rh�	GetCflags�
GetCflagsC�GetCflagsCCr�rl�items�
isinstancer��uniquerr#rz)Z�namerr�target_dicts�	build_dir�
config_to_use�options�generator_flags�all_qualified_targets�flavorrb�
circular_libsrr��rel_gyp_file�rel_gyp_dir�build_to_top�build_to_gyp�spec�configrTrn�target_type�target_toolset�cmake_target_type�cmake_target_namer�r��srcs�	s_sources�	c_sources�cxx_sources�linkable_sources�
other_sourcesr	r��src_type�
src_norm_path�extra_source�real_source�s_sources_name�c_sources_name�cxx_sources_name�linkable_sources_name�other_sources_name�dummy_sources_name�has_sourcesr5�library_dir�exclude_from_all�extra_target_name�target_output_directoryrO�cmake_target_output_directory�default_product_prefix�default_product_name�default_product_ext�static_library_prefix�shared_library_prefixr?r@�product_ext�cmake_target_output_basename�cmake_target_output�includes�
includes_namerLrNrO�
cflags_cxx�flagsrR�
xcode_setting�xcode_value�rawDeps�static_deps�shared_deps�
other_deps�rawDep�dep_cmake_name�dep_spec�dep_target_type�	extra_dep�depsr��linkable�lib_dep�
external_libs�write_grouprrKsZ                                                                                         @r&�WriteTargetr�ks���
"�%�%�j�$�7�7�-�	�	�	�\�5�	1�	1��
�L�L�����
�L�L�!�"�"�"�
�L�L������:�2�2�3C�D�D�.�(�A�q���(�(��7�3G�H�H�,������-�-�+���.�.�y�'�:N�O�O�,�����l�K�8�8�,� ,��	�	�	�*�B�	/�	/�$��8�8�$�b�)�)�-�-�m�R�@�@�&��.��u�_�_��(�6�6�t�<�<�N�����(?�@�@�+�����!8�9�9�+��8�8�I�&�&�.�<�@�@��M�M����	�E��;�;�k�k�k�=�>�>�>�
�F�
�f�h��,�,�,�
�f�i��0�0�0��1�1�2B�C�C���-��*��$����"�D��O�]�J�,�f�6�6�6�
��_�_�� �$�w�-��
�*�F�4�4�4������!�4��>�:�+�V�5�5�5�
���)�R�	 �	 �$��)��)��+����-�
�*�*�c�
�W�
�
�c�
"�
"�F�A�s�$�(�(��d�3�3�H� �!<�c�B�B�M��3������}�%�%�%�%�	�T�	�	����}�%�%�%�%�	�U�	�	�����'�'�'�'�	�#���*����m�,�,�,�,����=�)�)�)�)�#� � �l�#��C��
�W�
�
�k�
*�
*�F�A�s�$�(�(��d�3�3�H��3������s�����	�T�	�	����s�����	�U�	�	���������	�#��� ����c�"�"�"�"����3������.��7�&��5�N��F�N�I�6�6�6��.��7�&��3�N��F�N�I�6�6�6����;�(�<�7���F�,�k�:�:�:����E�-�0A�A���F�1�3C�D�D�D����?�*�^�;���F�.�
�>�>�>����$��$�!�$�'�$�$�	�
�L� � �� �*�^�;����*�:�<�<�<�
�L�L�"�#�#�#��&�,�-�-�-�
�L�L�����
�L�L�!�"�"�"��&�,�-�-�-�
�L�L�����
�L�L��������N�+�+�,���
�L�L�$�%�%�%�#�����l�l�3�����l�l�<� ;�[�I�I�J�J�J��l�l�4�����
�L�L������,�,� �(�)�)�)��,�,�s�����,�,� �!�!�!���+�
�L�L�����
�L�L�"�+�,�,�,��/��&�.�#�.�.�.��/��&�.�#�.�.�.��1��&�*�C�0�0�0��6��&�/��5�5�5��3��&�,�c�2�2�2��3��&�,�c�2�2�2��,�,�u����!1�8M� M� M�f�f�")���F�-�(�*:�<�<�<�%�>�>���f�/�*�,<�>�>�>�>��F����M�[�M��� 1�3D�s�e�L�L�L��=��l�l�1�2�2�2��F�.��3�3�3��l�l�;�<�<�<��<��l�l�1�2�2�2��F�.��3�3�3��l�l�:�;�;�;�#�h�h�}�5�5���&�	�9�	9�	9�"=�m�"L����*�*�*�">����8�8�/��7�7�>�"=�m�"L����J�+�+�B�G�O�O�H�,E�,E�,3�,@�B�B�	�"5���G�L�L�0�)�<�<�	 �%A�(C�(?�%A�%A�!��f���+�.A�A�%�'�'�'� ��&�����&�&�&�9�:M�N��)�*>�*?�A�A��4��7�8K�L���	�=�	=�	=�9�:M�N��)�*>�*?�A�A��4��7�8K�L���	��	$�	$��
;��k�8�[�
:�;�;�;��X�X�.�0F�G�G�N��8�8�N�,@�A�A�L��(�(�.�/�/�K��(��+�%�k�k�'�k��f�/��>�J�J�J��f�/�)�;�n�L�$�&�&�&��f�/��;�G�G�G�$2�L�#@�;�#N� ��'�,�,�'D�'C�E�E���F�/��v�h��K�K�K��z�z�.�)�)�H��
�'�*:�:�m��f�m�$�$�$�$�"�$�$�$�%�%�%�
�l�l�)�*�*�*��l�l�$�%�%�%��l�l�:�;�;�;��F�M�2�.�.�.��l�l�5�����j�j��#�#�G�����)�-���	���*�Z�Z��"�
%�
%�F��z�z�*�b�)�)�H����K��,�,�J��=��'�'�
�6�6�f��*�*�=�9�9�h�!�-�-�m�<�<�j�
�P�I�P�
�P�+�P��� 1�?�F�C�P�P�P�P�	�P�I�P��P��e��l�l�6�����l�l�8������ 1�?�E�3�O�O�O�O�	�P�i�P�9�P��e��l�l�6�����l�l�:������ 1�?�E�3�O�O�O�O�

�O�v�O�����&�#�N�N�N�	�N��N�(�N���
���V����
���X��������%��M�M�M�	�P�&�P�J�P���
���V����
���Z� � � ���!1�?�E�3�O�O�O��j�j��#�#�G����� 1�<��#�N�N�N��Z�Z� 0�"�5�5�N�&4�&:�&:�&<�&<�E�E�"�
�{��� 1�,�}�<�k�(��c�:�:�C����E�E�E�E�
�H�H�^�R�(�(�'��+��+��*��
(�
(�f��0�0��8�8�N������+�+�H��l�l�6�4�0�0�O��*�*�*�����(�(�(�(�	�-�	-�	-�����(�(�(�(�����'�'�'�'��
�K�
�:�
��	�	�	��l�l�&�'�'�'��l�l�9�����l�l�4������Z�8���$��:�%�%�d�+�+�	�	�C�
�,�,�t�
�
�
�
�,�,�s�
�
�
�
�,�,�t�
�
�
�
�	�
�l�l�5�����
�O�
O�(����J��������k��[��
�L�L�$�%�%�%�
�L�L�"�#�#�#�
�L�L������z�!�!�*�-�-�����l�l�4�����l�l�3�����l�l�4���������,���$��z�)�)�$�/�/�	�	�G�
�,�,�t�
�
�
�
�,�,�w�
�
�
�
�,�,�t�
�
�
�
�	��L�L�������N�N�D�H�H�[�"�$=�$=�N�N�N�M�����{���l�l�+�,�,�,��l�l�$�%�%�%��l�l�4����	�	,�#�P��K�(8�(8�1�(<�P��5����	.�
�,�,�,�
-�
-�
-��:�%�%�k�2�2�	�	�C�
�,�,�t�
�
�
�
�,�,�s�
�
�
�
�,�,�t�
�
�
�
��	,�
�,�,�*�
+�
+�
+�	���:�%�%�k�2�2�	�	�C�
�,�,�t�
�
�
�
�,�,�s�
�
�
�
�,�,�t�
�
�
�
�	���:�%�%�m�4�4�	�	�C�
�,�,�u�
�
�
�
�,�,�|�C��6�6�
7�
7�
7�
�,�,�u�
�
�
�
��l�l�5������	�"�"�"����!�!�!�!�!r(c
��	�|d}|d}tj�|��}tj�|jpd��}|�dd��}	tj�tj�	||	|����}
tj�	|j
|
��}tj�	|d��}tj�|��t|d��}
|
�
d��|
�
d	��tj�|d
��\}}}|
�
d��|
�
|��|
�
d��t|
d
|��d}d}d}||�dg��}tj�|
|j
��}|D]w\}}|dkr tj�	||��}|dkr tj�	||��}|dkr tj�	||��}�xtj�ddg|��}tj�ddg|��}tj�ddg|��}|rt|
d|��|rt|
d|��|rt|
d|��|
�
d��|rt|
d|��t|
dd��t|
dd��|
�
d��|
�
d��|
�
d ��|
�
d��|d!kr|
�
d"��|
�
d��t%|��}t'��}|d#D]X}tj�||tj�|����D]}|�|����Y|D]q}|d!krQtj�|��\}}}||}tj�|||��t1||||
||||||
�
�
�r|
���dS)$NrjrkrB�
output_dirr�zCMakeLists.txt�wz2cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
zcmake_policy(VERSION 2.8.8)
���zproject(rx�
configuration�make_global_settings�AR�CC�CXX�	AR_target�	CC_target�
CXX_target�CMAKE_AR�CMAKE_C_COMPILER�CMAKE_CXX_COMPILERzenable_language(ASM)
�CMAKE_ASM_COMPILER�builddirz${CMAKE_CURRENT_BINARY_DIR}�objz${builddir}/objr�z(set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)
z*set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
r)z'set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1)
�build_files)r,r-r.rHrI�relpath�generator_outputr�rMrLrY�EnsureDirExists�openrarrrrZ�GetEnvironFallbackrr��
AllTargetsrr[�MergeGlobalXcodeSettingsToSpecr��close)rrg�datar0rirjrkrm�
generator_dirr�rh�toplevel_build�output_filerbr�project_targetr��arrrr�rq�keyrgrfrl�
build_filerrss                             r&�GenerateOutputForConfigr�=s����9��'��,�-�/��:����'�'�&��'�/�/�'�":�"A�c�B�B�-��"�"�<��7�7�*��g���r�w�|�|�M�,6�,9� ;� ;�<�<�)��7�<�<�� 4�i�@�@�.�����^�-=�>�>�+��*���[�)�)�)���S�!�!�&��,�,�D�E�E�E��,�,�.�/�/�/� #�
� ?� ?��B�� P� P��(�N�A��,�,�z�����,�,�~�����,�,�u����
�f�o�}�5�5�5��"��"��#��h��+�+�,B�B�G�G����.�.�y�/6�/C�E�E�,�(�.�.�j�c�5�
�d�{�{�
�7�<�<��e�,�,�b�
�d�{�{�
�7�<�<��e�,�,�b�
�e�|�|��G�L�L��u�-�-�c��
�z�$�$�k�4�%8�"�=�=�"�
�z�$�$�k�4�%8�"�=�=�"��
�%�%�|�U�&;�S�A�A�#��(���
�B�'�'�'��0���*�B�/�/�/��3���,�c�2�2�2�	�,�,�'�(�(�(��2���,�b�1�1�1�
�f�j�"?�@�@�@�
�f�e�.�/�/�/��,�,�t����	�,�,�:�;�;�;��,�,�<�=�=�=��,�,�t����
�u�_�_�
�L�L�;�<�<�<��,�,�t����
�[�
!�
!�%��%�%���=�)�2�2�j��J�1�1�+�2>�24�'�2B�2B�:�2N�2N�P�P�2�2����� 0�1�1�1�1�2�
&�Q�Q��
�����z�6�6�7G�H�H�n�h��1�
�*�
+�d�	��8�8��h���N�N�N���'��y�-���*?���Q�Q�Q�Q�	�,�,�.�.�.�.�.r(c���|d}|d}tj�|jpd��}|�dd��}|D]�}tj�tj�|||����}gd�}	td|�d|	����tj	|	|�	��d
d|g}	td|�d|	����tj	|	����dS)
NrjrkrBr�r�)�cmakez-G�NinjazGenerating [z]: )�cwd�ninjaz-Cz
Building [)
rHrIr�r�r�rMrLr^�
subprocess�
check_call)
r�r(r0rjrkr�r��config_namerh�	argumentss
          r&�PerformBuildr��s���9��'��,�-�/��'�/�/�'�":�"A�c�B�B�-��"�"�<��7�7�*�#�%�%�k��� � �����m�.8�.9�";�";�<�<�I�)�(�(�I�	�E�;�;�;�	�	�
:�;�;�;���)��3�3�3�3��$�	�*�I�	�E����i�i�
8�9�9�9���)�$�$�$�$�%�%r(c��tjtjtj��|\}}}}}t|||||��dSr4)�signal�SIGINT�SIG_IGNr�)�arglistrrgr�r0r�s      r&�CallGenerateOutputForConfigr��sF��	�-��
�v�~�.�.�.�9@�6�+�|�T�6�;��+�|�T�6�;�O�O�O�O�Or(c��|�di���dd��}|rt|||||��dS||dd}|dr�	tjt	|����}g}|D]7}|�|||||f��|�t|���8dS#t$r}	|�	��|	�d}	~	wwxYw|D]}t|||||���dS)Nrkrtrr(�parallel)
r�r��multiprocessing�Poolr#r��mapr��KeyboardInterrupt�	terminate)
rrgr�r0�user_config�config_names�pool�arglistsr�r8s
          r&�GenerateOutputr��sd���
�
�,�b�1�1�5�5�h��E�E�+��5��K��t�"�K�1�1�1�1�1� ��A��/�0@�A�L�
�j��5�	��#�C��$5�$5�6�6����'�	:�	:�K�
�/�/�;��d�!�;�0�1�1�1�
�(�(�.��
9�
9�
9�
9�	:�	:����������������������&�5�5�+���\�4� &��	5�	5�	5�	5�5�5s�AB>�>
C#�C�C#)rr4)2r$�
__future__rr�rHr��stringr��
gyp.commonr,�gyp.xcode_emulation�	maketransr��AttributeErrorr�r_rK�$generator_supports_multiple_toolsets�4generator_wants_static_library_dependencies_adjustedr<r'r1r>r@rPrSrZrhrlrorrrvrzrjrr�r]r�r�r�r�rrrrr�r�r�r�r�rCr(r&�<module>r�s)��
��4&�%�%�%�%�%�����	�	�	�	�
�
�
�
�
�
�
�
����������������*�*�������}�*�*�*�������r���r���u���t�	�
�u���u�
��0���
 ���8���\������)���/���)���)�� �'�!�"�*�#��(H��'+�$�7;�4�	
�	�
�
���
���8�8�8�
C�C�C�
B�B�B�
!�!�!�
K�K�K�"=�=�=�I�I�I�&
�
�
�
�
�
�
�
�
�
����
�
�
��������/�/�/�/�/�f�/�/�/� �� 0�$�	�B�B�#�O�M�8�Y�G�G�#�O�M�8�Y�G�G�$�_�]�H�i�H�H�
�/�-�y�$�
?�
?�*�*�&�7�7�7�L*�L*�L*�^;�;�;�o!�o!�o!�di�i�i�X9�9�9�9�9�9�$�$�$�$�$��$�$�$�NO"�O"�O"�dp�p�p�f%�%�%�4P�P�P�5�5�5�5�5s�.�=�=