HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //lib/python3.6/site-packages/gyp/__pycache__/MSVSToolFile.cpython-36.opt-1.pyc
3

e�AU�@s*dZddlZddljZGdd�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�"/usr/lib/python3.6/MSVSToolFile.py�__init__szWriter.__init__cCs8d|||dj|�dj|�dj|�d�g}|jj|�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�cmd�descriptionZadditional_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