HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/gyp/__pycache__/MSVSToolFile.cpython-39.pyc
a

r�^�@s,dZddlZddlmZGdd�de�ZdS)z$Visual Studio project reader/writer.�Nc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�Writerz#Visual Studio XML tool file writer.cCs||_||_dg|_dS)zzInitializes the tool file.

    Args:
      tool_file_path: Path to the tool file.
      name: Name of the tool file.
    ZRulesN)�tool_file_path�name�
rules_section)�selfrr�r�2/usr/lib/python3/dist-packages/gyp/MSVSToolFile.py�__init__szWriter.__init__c	Cs8d|||d�|�d�|�d�|�d�g}|j�|�dS)a9Adds a rule to the tool file.

    Args:
      name: Name of the rule.
      description: Description of the rule.
      cmd: Command line of the rule.
      additional_dependencies: other files which may trigger the rule.
      outputs: outputs of the rule.
      extensions: extensions handled by the rule.
    ZCustomBuildRule�;)�NameZExecutionDescriptionZCommandLineZOutputsZFileExtensionsZAdditionalDependenciesN)�joinr�append)rr�cmdZdescriptionZadditional_dependenciesZoutputs�
extensionsZrulerrr�AddCustomBuildRules
��	zWriter.AddCustomBuildRulecCs*dd|jd�|jg}tj||jdd�dS)zWrites the tool file.ZVisualStudioToolFilez8.00)ZVersionrzWindows-1252)�encodingN)rr�easy_xmlZWriteXmlIfChangedr)rZcontentrrr�WriteIfChanged1s��
�zWriter.WriteIfChangedN)�__name__�
__module__�__qualname__�__doc__r	rrrrrrrsr)rZ
gyp.commonZgypZgyp.easy_xmlr�objectrrrrr�<module>s