Writes the project file.
(self)
| 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") |
no test coverage detected