ó  îRac@s;dZddlZddljZdefd„ƒYZdS(s$Visual Studio project reader/writer.i˙˙˙˙NtWritercBs)eZdZd„Zd„Zd„ZRS(s#Visual Studio XML tool file writer.cCs"||_||_dg|_dS(szInitializes the tool file. Args: tool_file_path: Path to the tool file. name: Name of the tool file. tRulesN(ttool_file_pathtnamet rules_section(tselfRR((sn/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSToolFile.pyt__init__s  cCsedi|d6|d6|d6dj|ƒd6dj|ƒd6dj|ƒd6g}|jj|ƒd S( s9Adds 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. tCustomBuildRuletNametExecutionDescriptiont CommandLinet;tOutputstFileExtensionstAdditionalDependenciesN(tjoinRtappend(RRtcmdt descriptiontadditional_dependenciestoutputst extensionstrule((sn/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSToolFile.pytAddCustomBuildRules  cCs@didd6|jd6|jg}tj||jddƒdS(sWrites the tool file.tVisualStudioToolFiles8.00tVersionRtencodings Windows-1252N(RRteasy_xmltWriteXmlIfChangedR(Rtcontent((sn/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSToolFile.pytWriteIfChanged1s    (t__name__t __module__t__doc__RRR(((sn/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSToolFile.pyR s (R!t gyp.commontgypt gyp.easy_xmlRtobjectR(((sn/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSToolFile.pyts