aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/depscanner.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-09-30 10:35:49 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-09-30 10:42:28 +0200
commitbf3a7979a41b166b8dc178a3cc6a22f15a4e6ea5 (patch)
treeef02290769e610427f052a53a0e24e71b4adc9e1 /src/lib/corelib/buildgraph/depscanner.cpp
parentd17105376102c4cd846757c7f091b9f3cd90e4d7 (diff)
parented69ed958d6ca25cb97dc81b21322f8ab398b7df (diff)
Merge 1.6 into master
Diffstat (limited to 'src/lib/corelib/buildgraph/depscanner.cpp')
-rw-r--r--src/lib/corelib/buildgraph/depscanner.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/lib/corelib/buildgraph/depscanner.cpp b/src/lib/corelib/buildgraph/depscanner.cpp
index f7d309f3e..02c63ce5d 100644
--- a/src/lib/corelib/buildgraph/depscanner.cpp
+++ b/src/lib/corelib/buildgraph/depscanner.cpp
@@ -63,14 +63,24 @@ static void collectCppIncludePaths(const QVariantMap &modules, QSet<QString> *co
QMapIterator<QString, QVariant> iterator(modules);
while (iterator.hasNext()) {
iterator.next();
+ const auto properties = iterator.value().toMap();
if (iterator.key() == QLatin1String("cpp")) {
- QVariant includePathsVariant =
- iterator.value().toMap().value(QLatin1String("includePaths"));
+ QVariant includePathsVariant = properties.value(QLatin1String("includePaths"));
if (includePathsVariant.isValid())
collectedPaths->unite(QSet<QString>::fromList(includePathsVariant.toStringList()));
+ QVariant systemIncludePathsVariant =
+ properties.value(QLatin1String("systemIncludePaths"));
+ if (systemIncludePathsVariant.isValid())
+ collectedPaths->unite(QSet<QString>::fromList(
+ systemIncludePathsVariant.toStringList()));
+ QVariant compilerIncludePathsVariant =
+ properties.value(QLatin1String("compilerIncludePaths"));
+ if (compilerIncludePathsVariant.isValid())
+ collectedPaths->unite(QSet<QString>::fromList(
+ compilerIncludePathsVariant.toStringList()));
} else {
- collectCppIncludePaths(iterator.value().toMap().value(QLatin1String("modules")).toMap(),
- collectedPaths);
+ collectCppIncludePaths(properties.value(QLatin1String("modules")).toMap(),
+ collectedPaths);
}
}
}