summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-01-27 21:54:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-01-28 11:11:58 +0100
commit41c8e0957369b7b53a3b9cf4b4cf1e49a982a414 (patch)
treed6120a3e158fd3b2e01ad15e2f79a274183c221a /bin
parentdc8c295605d190d0fc9d4a9a8b369c319be9d44b (diff)
fix codelite-ide-integration
externals seems to be part of the list of modules now, but I don't know how to deal with that, so just ignore them. Change-Id: Ic42d0b27562247b12cf9393659298cda56d1572c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162648 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gbuild-to-ide12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 733520934c30..ab4f947dc7d6 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -298,22 +298,26 @@ class CodeliteIntegrationGenerator(IdeIntegrationGenerator):
def emit(self):
self.create_workspace_file()
for module in self.gbuildparser.modulenamelist:
- self.create_project_file(module)
+ if os.path.exists(module): # ignore external modules
+ self.create_project_file(module)
#self.create_project_file('vcl')
def create_workspace_file(self):
root_node = ET.Element('CodeLite_Workspace', Name='libo2', Database='./libo2.tags', Version='10.0.0')
for module in self.gbuildparser.modulenamelist:
- ET.SubElement(root_node, 'Project', Name=module, Path='%s/%s.project' % (module, module), Active='No')
+ if os.path.exists(module): # ignore external modules
+ ET.SubElement(root_node, 'Project', Name=module, Path='%s/%s.project' % (module, module), Active='No')
build_matrix_node = ET.SubElement(root_node, 'BuildMatrix')
workspace_config_node = ET.SubElement(build_matrix_node, 'WorkspaceConfiguration', Name='Debug', Selected='yes')
ET.SubElement(workspace_config_node, 'Environment')
for module in self.gbuildparser.modulenamelist:
- ET.SubElement(workspace_config_node, 'Project', Name=module, ConfigName='Debug')
+ if os.path.exists(module): # ignore external modules
+ ET.SubElement(workspace_config_node, 'Project', Name=module, ConfigName='Debug')
workspace_config_node = ET.SubElement(build_matrix_node, 'WorkspaceConfiguration', Name='Release', Selected='yes')
ET.SubElement(workspace_config_node, 'Environment')
for module in self.gbuildparser.modulenamelist:
- ET.SubElement(workspace_config_node, 'Project', Name=module, ConfigName='Release')
+ if os.path.exists(module): # ignore external modules
+ ET.SubElement(workspace_config_node, 'Project', Name=module, ConfigName='Release')
self.write_pretty_xml(root_node, os.path.join(self.gbuildparser.builddir, 'libo2.workspace'))