X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
node-gyp
/
gyp
/
pylib
/
gyp
/
ðŸ“
..
📄
MSVSNew.py
(11.66 KB)
📄
MSVSProject.py
(6.24 KB)
📄
MSVSSettings.py
(44.11 KB)
📄
MSVSSettings_test.py
(64.56 KB)
📄
MSVSToolFile.py
(1.76 KB)
📄
MSVSUserFile.py
(4.97 KB)
📄
MSVSUtil.py
(9.31 KB)
📄
MSVSVersion.py
(17.02 KB)
📄
__init__.py
(21.87 KB)
📄
common.py
(20.58 KB)
📄
common_test.py
(1.92 KB)
📄
easy_xml.py
(4.87 KB)
📄
easy_xml_test.py
(3.25 KB)
📄
flock_tool.py
(1.71 KB)
ðŸ“
generator
📄
input.py
(113.65 KB)
📄
input_test.py
(3.11 KB)
📄
mac_tool.py
(22.89 KB)
📄
msvs_emulation.py
(46.76 KB)
📄
ninja_syntax.py
(5.41 KB)
📄
simple_copy.py
(1.3 KB)
📄
win_tool.py
(12.72 KB)
📄
xcode_emulation.py
(64.85 KB)
📄
xcode_ninja.py
(10.32 KB)
📄
xcodeproj_file.py
(117.66 KB)
📄
xml_fix.py
(2.12 KB)
Editing: MSVSToolFile.py
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Visual Studio project reader/writer.""" import gyp.common import gyp.easy_xml as easy_xml class Writer(object): """Visual Studio XML tool file writer.""" def __init__(self, tool_file_path, name): """Initializes the tool file. Args: tool_file_path: Path to the tool file. name: Name of the tool file. """ self.tool_file_path = tool_file_path self.name = name self.rules_section = ['Rules'] def AddCustomBuildRule(self, name, cmd, description, additional_dependencies, outputs, extensions): """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. """ rule = ['CustomBuildRule', {'Name': name, 'ExecutionDescription': description, 'CommandLine': cmd, 'Outputs': ';'.join(outputs), 'FileExtensions': ';'.join(extensions), 'AdditionalDependencies': ';'.join(additional_dependencies) }] self.rules_section.append(rule) def WriteIfChanged(self): """Writes the tool file.""" content = ['VisualStudioToolFile', {'Version': '8.00', 'Name': self.name }, self.rules_section ] easy_xml.WriteXmlIfChanged(content, self.tool_file_path, encoding="Windows-1252")
Upload File
Create Folder