[Libreoffice-commits] core.git: bin/gbuild-to-ide
Michael Weghorn (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 11 20:23:30 UTC 2019
bin/gbuild-to-ide | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0470bfdff2b1bca7a075d130b029d4a1a54e90fc
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri Oct 11 11:47:57 2019 +0200
Commit: Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Fri Oct 11 22:22:18 2019 +0200
qtcreator-ide-integration: Take unit tests into account
This makes code-completion, clang checks, navigation etc.
work in files related to those as well.
Change-Id: Ie0b7d75f2ed953228d74ae070056327bff7ff2a2
Reviewed-on: https://gerrit.libreoffice.org/80652
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index f08c0fcbc2ce..f281f17fbfd6 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -1186,7 +1186,7 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator):
def __init__(self, gbuildparser, ide):
IdeIntegrationGenerator.__init__(self, gbuildparser, ide)
self.target_by_location = {}
- for target in set(self.gbuildparser.libs) | set(self.gbuildparser.exes):
+ for target in set(self.gbuildparser.libs) | set(self.gbuildparser.exes) | set(self.gbuildparser.tests):
if target.location not in self.target_by_location:
self.target_by_location[target.location] = set()
self.target_by_location[target.location] |= set([target])
@@ -1642,7 +1642,7 @@ class QtCreatorIntegrationGenerator(IdeIntegrationGenerator):
self.data_libs = {}
- all_libs = set(self.gbuildparser.libs) | set(self.gbuildparser.exes)
+ all_libs = set(self.gbuildparser.libs) | set(self.gbuildparser.exes) | set(self.gbuildparser.tests)
for lib in all_libs:
self._log("\nlibrary : %s, loc=%s" % (lib.short_name(), lib.location))
lib_name = os.path.basename(lib.location)
More information about the Libreoffice-commits
mailing list