summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_configure.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2016-12-23 15:48:54 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2016-12-30 10:25:38 +0000
commit8292326f1bc986f8d87b9f3c244a5e0eb06563f9 (patch)
treecc3537de555fde2452743efdd9ef85f933fcc229 /mkspecs/features/qt_configure.prf
parent70a72768409a89e770e1279cfb3e8b59df21a11c (diff)
configure: make library sources fail more verbosely
log a message in all unsuccessful exit paths. Task-number: QTBUG-57217 Change-Id: I8b0f2685d327da583c3e42c8149327e05b2a66cc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs/features/qt_configure.prf')
-rw-r--r--mkspecs/features/qt_configure.prf13
1 files changed, 9 insertions, 4 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index 41bd75c45d..c20a9672e4 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -503,12 +503,16 @@ defineTest(qtConfLibrary_makeSpec) {
# the library is found via pkg-config.
defineTest(qtConfLibrary_pkgConfig) {
pkg_config = $$qtConfPkgConfig($$eval($${1}.host))
- isEmpty(pkg_config): \
+ isEmpty(pkg_config) {
+ qtLog("pkg-config use disabled globally.")
return(false)
+ }
args = $$qtConfPrepareArgs($$eval($${1}.args))
- !qtConfPkgConfigPackageExists($$pkg_config, $$args): \
+ !qtConfPkgConfigPackageExists($$pkg_config, $$args) {
+ qtLog("pkg-config did not find package.")
return(false)
+ }
qtRunLoggedCommand("$$pkg_config --modversion $$args", version)|return(false)
qtRunLoggedCommand("$$pkg_config --libs-only-L --libs-only-l $$args", $${1}.libs)|return(false)
@@ -619,8 +623,9 @@ defineTest(qtConfHandleLibrary) {
qtLog("Trying source $$s (type $$t) of library $${1} ...")
- !$$qtConfEvaluate($$eval($${spfx}.condition)) {
- qtLog(" => source failed condition.")
+ cond = $$eval($${spfx}.condition)
+ !$$qtConfEvaluate($$cond) {
+ qtLog(" => source failed condition '$$cond'.")
next()
}