From 26bbc40db925d7823d9cf9db80a4093eba613ad8 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 25 Jul 2014 19:37:57 +0200 Subject: add priority sorting to $$resolve_depends() all else being equal, items with a higher numerical priority will appear first in the result. Change-Id: I4ee37ff404a53c4152a1e4fc2fc3c23ef525234d Reviewed-by: Joerg Bornemann --- tests/auto/tools/qmake/testdata/functions/functions.pro | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/auto/tools/qmake/testdata/functions/functions.pro') diff --git a/tests/auto/tools/qmake/testdata/functions/functions.pro b/tests/auto/tools/qmake/testdata/functions/functions.pro index 84f97c2022..a0e88300d4 100644 --- a/tests/auto/tools/qmake/testdata/functions/functions.pro +++ b/tests/auto/tools/qmake/testdata/functions/functions.pro @@ -173,3 +173,12 @@ testReplace($$shell_quote($$in), $$out, "shell_quote") testReplace($$reverse($$list(one two three)), three two one, "reverse") testReplace($$cat(textfile), hi '"holla he"' 'hu!') + +MOD.a.depends = +MOD.b.depends = +MOD.b.priority = 1 +MOD.c.depends = a b +testReplace($$resolve_depends($$list(c), "MOD."), c b a) +MOD.a.priority = 1 +MOD.b.priority = 0 +testReplace($$resolve_depends($$list(c), "MOD."), c a b) -- cgit v1.2.3