Kaydet (Commit) e03654bb authored tarafından Gulsah Kose's avatar Gulsah Kose Kaydeden (comit) Noel Grandin

fdo#84628 Created .project file generator.

This patch is starting to EclipseCDT Integration. Written the .project file generating function.

Change-Id: If38077561820d9a333d186a2785ecddd1113fe92
Signed-off-by: 's avatarGulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/14871Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst ca07d5be
......@@ -226,6 +226,46 @@ class IdeIntegrationGenerator:
def emit(self):
pass
class EclipseCDTIntegrationGenerator(IdeIntegrationGenerator):
def __init__(self, gbuildparser, ide):
IdeIntegrationGenerator.__init__(self, gbuildparser, ide)
self.oe_cdt = 'org.eclipse.cdt'
self.cdt_mb = self.oe_cdt + '.managebuilder.core'
self.cdt_core = self.oe_cdt + '.core'
def generate_project_file(self, name, comment, xmlversion, encoding):
projectfiletemplate = """
<?xml version="%(xmlversion)s" encoding="%(encoding)s"?>
<projectDescription>
<name>%(name)s</name>
<comment>%(comment)s</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>"""+ self.cdt_mb +""".genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>"""+ self.cdt_mb +""".ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>""" + self.cdt_core + """.cnature</nature>
<nature>""" + self.cdt_core + """.ccnature</nature>
<nature>""" + self.cdt_mb + """.managedBuildNature</nature>
<nature>""" + self.cdt_mb + """.ScannerConfigNature</nature>
</natures>
</projectDescription>
"""
return projectfiletemplate % {'name': name, 'comment': comment, 'xmlversion': xmlversion, 'encoding':encoding}
class DebugIntegrationGenerator(IdeIntegrationGenerator):
......@@ -900,6 +940,7 @@ if __name__ == '__main__':
args = parser.parse_args()
paths = {}
generators = {
'eclipsecdt': EclipseCDTIntegrationGenerator,
'kdevelop': KdevelopIntegrationGenerator,
'xcode': XcodeIntegrationGenerator,
'vs2012': VisualStudioIntegrationGenerator,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment