From bca5a5d6f6e317151f3dab56f1d804af8d1aa62a Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Wed, 24 Nov 2010 11:51:57 -0600 Subject: 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].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. --- qmake/project.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qmake/project.h') 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 &place, bool *ok=0); void init(QMakeProperty *, const QMap *); QStringList &values(const QString &v, QMap &place); + QStringList resolveDepends(const QStringList &deps, const QString &prefix, QMap &place); void validateModes(); public: -- cgit v1.2.3