Ejemplo n.º 1
0
 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")
Ejemplo n.º 2
0
 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"
     )
Ejemplo n.º 3
0
    def WriteIfChanged(self):
        """Writes the user file."""
        configs = ['Configurations']
        for config, spec in sorted(self.configurations.items()):
            configs.append(spec)

        content = ['VisualStudioUserFile',
                   {'Version': self.version.ProjectVersion(),
                    'Name': self.name
                    },
                   configs]
        easy_xml.WriteXmlIfChanged(content, self.user_file_path,
                                   encoding="Windows-1252")
Ejemplo n.º 4
0
 def WriteIfChanged(self):
     """Writes the project file."""
     # First create XML content definition
     content = [
         "VisualStudioProject",
         {
             "ProjectType": "Visual C++",
             "Version": self.version.ProjectVersion(),
             "Name": self.name,
             "ProjectGUID": self.guid,
             "RootNamespace": self.name,
             "Keyword": "Win32Proj",
         },
         self.platform_section,
         self.tool_files_section,
         self.configurations_section,
         ["References"],  # empty section
         self.files_section,
         ["Globals"],  # empty section
     ]
     easy_xml.WriteXmlIfChanged(content, self.project_path, encoding="Windows-1252")
Ejemplo n.º 5
0
 def WriteIfChanged(self):
     """Writes the project file."""
     # First create XML content definition
     content = [
         'VisualStudioProject',
         {'ProjectType': 'Visual C++',
          'Version': self.version.ProjectVersion(),
          'Name': self.name,
          'ProjectGUID': self.guid,
          'RootNamespace': self.name,
          'Keyword': 'Win32Proj'
          },
         self.platform_section,
         self.tool_files_section,
         self.configurations_section,
         ['References'],  # empty section
         self.files_section,
         ['Globals']  # empty section
     ]
     easy_xml.WriteXmlIfChanged(content, self.project_path,
                                encoding="Windows-1252")