From 41c8e0957369b7b53a3b9cf4b4cf1e49a982a414 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 27 Jan 2024 21:54:10 +0200 Subject: 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 --- bin/gbuild-to-ide | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin') 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')) -- cgit v1.2.3