Ë
    Ï"Kb  ã                   ó2   — d Z ddlZddlmZ  G d„ de«      Zy)z$Visual Studio project reader/writer.é    Nc                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚWriterz#Visual Studio XML tool file writer.c                 ó0   — || _         || _        dg| _        y)zzInitializes the tool file.

    Args:
      tool_file_path: Path to the tool file.
      name: Name of the tool file.
    ÚRulesN)Útool_file_pathÚnameÚrules_section)Úselfr   r   s      ú2/usr/lib/python3/dist-packages/gyp/MSVSToolFile.pyÚ__init__zWriter.__init__   s   € ð )€DÔØ€D„IØ!˜€DÕó    c           	      óª   — d|||dj                  |«      dj                  |«      dj                  |«      dœg}| j                  j                  |«       y)a9  Adds 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.
    ÚCustomBuildRuleú;)ÚNameÚExecutionDescriptionÚCommandLineÚOutputsÚFileExtensionsÚAdditionalDependenciesN)Újoinr	   Úappend)r
   r   ÚcmdÚdescriptionÚadditional_dependenciesÚoutputsÚ
extensionsÚrules           r   ÚAddCustomBuildRulezWriter.AddCustomBuildRule   sW   € ð ØØ%0ØØŸ™ Ó)Ø"Ÿx™x¨
Ó3à—‘Ð1Ó2ñð€Dð 	×Ñ×Ñ˜dÕ#r   c                 ó€   — dd| j                   dœ| j                  g}t        j                  || j                  d¬«       y)zWrites the tool file.ÚVisualStudioToolFilez8.00)ÚVersionr   zWindows-1252)ÚencodingN)r   r	   Úeasy_xmlÚWriteXmlIfChangedr   )r
   Úcontents     r   ÚWriteIfChangedzWriter.WriteIfChanged1   sC   € à%Ø!ØŸ	™	ñð ×!Ñ!ð	€Gô ×Ñ˜w¨×(;Ñ(;Ø(6ö8r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r'   © r   r   r   r      s   „ Ù+ò	#ò$ó0	8r   r   )r+   Ú
gyp.commonÚgypÚgyp.easy_xmlr$   Úobjectr   r,   r   r   ú<module>r1      s   ðñ
 +ã Ý ô/8ˆVõ /8r   