bin/gbuild-to-ide | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
New commits: commit 25a502050f4a898e4ce147afa71f135c771c50a3 Author: Federico Bassini <kuroga...@gmail.com> Date: Thu Feb 2 00:11:03 2017 +0100 gbuild-to-ide: second patch for vs2013 and testIde the path in gbuildparse changed, so this patch re-adapt this 2 IDE integration Change-Id: I5f7a679b8b12eac6f44030a33713ff19327b9d1a Reviewed-on: https://gerrit.libreoffice.org/33815 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: jan iversen <j...@documentfoundation.org> diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 258a971..0ab45d1 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -94,7 +94,7 @@ class GbuildParser: # Relation between json object and file extension jsonSrc = { 'CXXOBJECTS': '.cxx', 'OBJCOBJECTS': '.m', 'OBJCXXOBJECTS': '.mm', 'COBJECTS': '.c', - 'LEXOBJECTS': '.l', 'YACCOBJECTS': '.y', + 'FLEXOBJECTS': '.l', 'YACCOBJECTS': '.y', 'GENCXXOBJECTS': '.cxx', # remark is in workdir/GenCxxObject 'ASMOBJECTS': '.s', #not in json, due to Blacklist ? @@ -368,9 +368,9 @@ class testVS2013Ide(IdeIntegrationGenerator): for cxxobject in target['CXXOBJECTS']: cxxrelpath= os.path.join('../..',target['location'].split('/')[-1], cxxobject) cxxabspath = os.path.join(self.gbuildparser.srcdir,target['location'].split('/')[-1], cxxobject) - cxxfile = cxxabspath + '.cxx' + cxxfile = cxxabspath if os.path.isfile(cxxfile): - ET.SubElement(cxxobjects_node, '{%s}ClCompile' % ns, Include=cxxrelpath + '.cxx') + ET.SubElement(cxxobjects_node, '{%s}ClCompile' % ns, Include=cxxrelpath) else: print('Source %s in project %s does not exist' % (cxxfile, target['target_name'])) @@ -378,13 +378,13 @@ class testVS2013Ide(IdeIntegrationGenerator): for cxxobject in target['CXXOBJECTS']: include_rel_path = os.path.join('../..',target['location'].split('/')[-1], cxxobject) include_abs_path = os.path.join(self.gbuildparser.srcdir,target['location'].split('/')[-1], cxxobject) - hxxfile = include_abs_path + '.hxx' + hxxfile = include_abs_path if os.path.isfile(hxxfile): - ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path + '.hxx') + ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path) # Few files have corresponding .h files - hfile = include_abs_path + '.h' + hfile = include_abs_path if os.path.isfile(hfile): - ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path + '.h') + ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path) ET.SubElement(proj_node, '{%s}Import' % ns, Project='$(VCTargetsPath)\Microsoft.Cpp.targets') ET.SubElement(proj_node, '{%s}ImportGroup' % ns, Label='ExtensionTargets') self.write_pretty_xml(proj_node, project_path) @@ -844,9 +844,9 @@ class VisualStudioIntegrationGenerator(IdeIntegrationGenerator): for cxxobject in target['CXXOBJECTS']: cxxrelpath = os.path.join('../..', target['location'].split('/')[-1], cxxobject) cxxabspath = os.path.join(self.gbuildparser.srcdir, target['location'].split('/')[-1], cxxobject) - cxxfile = cxxabspath + '.cxx' + cxxfile = cxxabspath if os.path.isfile(cxxfile): - ET.SubElement(cxxobjects_node, '{%s}ClCompile' % ns, Include=cxxrelpath + '.cxx') + ET.SubElement(cxxobjects_node, '{%s}ClCompile' % ns, Include=cxxrelpath) else: print('Source %s in project %s does not exist' % (cxxfile, target['target_name'])) @@ -854,13 +854,13 @@ class VisualStudioIntegrationGenerator(IdeIntegrationGenerator): for cxxobject in target['CXXOBJECTS']: include_rel_path = os.path.join('../..',target['location'].split('/')[-1], cxxobject) include_abs_path = os.path.join(self.gbuildparser.srcdir,target['location'].split('/')[-1], cxxobject) - hxxfile = include_abs_path + '.hxx' + hxxfile = include_abs_path if os.path.isfile(hxxfile): - ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path + '.hxx') + ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path) # Few files have corresponding .h files - hfile = include_abs_path + '.h' + hfile = include_abs_path if os.path.isfile(hfile): - ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path + '.h') + ET.SubElement(includes_node, '{%s}ClInclude' % ns, Include=include_rel_path) ET.SubElement(proj_node, '{%s}Import' % ns, Project='$(VCTargetsPath)\Microsoft.Cpp.targets') ET.SubElement(proj_node, '{%s}ImportGroup' % ns, Label='ExtensionTargets') self.write_pretty_xml(proj_node, project_path) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits