path: root/qmake/project.h
diff options
authorMarius Storm-Olsen <>2010-11-24 11:51:57 -0600
committeraxis <>2011-04-27 12:05:46 +0200
commitbca5a5d6f6e317151f3dab56f1d804af8d1aa62a (patch)
tree683d2a93b80257df498fe81123ca37858f0252a0 /qmake/project.h
parent00c5f39081fb8de9e0b77de4e21ba0862d4bf695 (diff)
Add resolve_depends(var, prefix) function to qmake
This function calculates the topological order of variables. We will use it to determine which and in what order to link module libraries. The function is not tied to libraries/modules only, but requires the variables to be ordered to have their dependencies in the [prefix]<var>.depends subvariable. Due to the recursive nature of the algorithm it was just much easier to implement it directly in C++ rather than in a qmake-language function.
Diffstat (limited to 'qmake/project.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/project.h b/qmake/project.h
index 0e6131d3a2..aea18afd52 100644
--- a/qmake/project.h
+++ b/qmake/project.h
@@ -107,6 +107,7 @@ class QMakeProject
QStringList doVariableReplaceExpand(const QString &str, QMap<QString, QStringList> &place, bool *ok=0);
void init(QMakeProperty *, const QMap<QString, QStringList> *);
QStringList &values(const QString &v, QMap<QString, QStringList> &place);
+ QStringList resolveDepends(const QStringList &deps, const QString &prefix, QMap<QString, QStringList> &place);
void validateModes();