MCPcopy Create free account
hub / github.com/nodejs/node / WriteIfChanged

Method WriteIfChanged

tools/gyp/pylib/gyp/MSVSProject.py:186–206  ·  view source on GitHub ↗

Writes the project file.

(self)

Source from the content-addressed store, hash-verified

184 parent.append(spec)
185
186 def WriteIfChanged(self):
187 """Writes the project file."""
188 # First create XML content definition
189 content = [
190 "VisualStudioProject",
191 {
192 "ProjectType": "Visual C++",
193 "Version": self.version.ProjectVersion(),
194 "Name": self.name,
195 "ProjectGUID": self.guid,
196 "RootNamespace": self.name,
197 "Keyword": "Win32Proj",
198 },
199 self.platform_section,
200 self.tool_files_section,
201 self.configurations_section,
202 ["References"], # empty section
203 self.files_section,
204 ["Globals"], # empty section
205 ]
206 easy_xml.WriteXmlIfChanged(content, self.project_path, encoding="Windows-1252")

Callers 3

_GenerateMSVSProjectFunction · 0.95
_WriteMSVSUserFileFunction · 0.45

Calls 1

ProjectVersionMethod · 0.80

Tested by

no test coverage detected