§
    Ï"Kb  ã                   ó:   — d Z ddlZddlmZ  G d„ de¦  «        ZdS )z$Visual Studio project reader/writer.é    Nc                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )ÚWriterz#Visual Studio XML tool file writer.c                 ó2   — || _         || _        dg| _        dS )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                      |¦  «        d                      |¦  «        d                      |¦  «        dœg}| j                             |¦  «         dS )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   sn   € ð ØØ%0ØØŸš Ñ)Ô)Ø"Ÿxšx¨
Ñ3Ô3à—’Ð1Ñ2Ô2ðð ð€Dð 	Ô×Ò˜dÑ#Ô#Ð#Ð#Ð#r   c                 ób   — dd| j         dœ| j        g}t          j        || j        d¬¦  «         dS )zWrites the tool file.ÚVisualStudioToolFilez8.00)ÚVersionr   zWindows-1252)ÚencodingN)r   r	   Úeasy_xmlÚWriteXmlIfChangedr   )r
   Úcontents     r   ÚWriteIfChangedzWriter.WriteIfChanged1   sV   € à%Ø!Øœ	ðð ð Ô!ð	€Gõ Ô˜w¨Ô(;Ø(6ð8ñ 8ô 8ð 8ð 8ð 8r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r'   © r   r   r   r      sG   € € € € € Ø+Ð+ð	#ð 	#ð 	#ð$ð $ð $ð0	8ð 	8ð 	8ð 	8ð 	8r   r   )r+   Ú
gyp.commonÚgypÚgyp.easy_xmlr$   Úobjectr   r,   r   r   ú<module>r1      s_   ðð
 +Ð *à Ð Ð Ð Ø Ð Ð Ð Ð Ð ð/8ð /8ð /8ð /8ð /8ˆVñ /8ô /8ð /8ð /8ð /8r   