diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-06-06 13:01:45 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-06-19 16:46:09 +0200 |
commit | 2f1762535b87ffe2572a25a4de0f3b83bf408595 (patch) | |
tree | 30c8352056a710749b7d9291750eb688e8c49ab2 /mkspecs | |
parent | 0fdf7c3a43f09f1e209e91ebc6a502af54fb3ab5 (diff) |
make missing qt modules fatal
there is no point in continuing; it will error out later (in more
cryptic ways) anyway.
Change-Id: I2562eadc2d91bfaa6e85368dc3774da31409a141
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/qt.prf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf index d9422ca1e8..c65be4c456 100644 --- a/mkspecs/features/qt.prf +++ b/mkspecs/features/qt.prf @@ -153,10 +153,11 @@ for(QTLIB, QT) { # Topological resolution of modules based on their QT.<module>.depends variable QT = $$resolve_depends(NEWQT, "QT.") # Finally actually add the modules +unset(BAD_QT) for(QTLIB, QT) { QTLIBNAME = $$eval(QT.$${QTLIB}.name) isEmpty(QTLIBNAME) { - message("Warning: unknown QT module: $$QTLIB") + BAD_QT += $$QTLIB next() } @@ -167,6 +168,7 @@ for(QTLIB, QT) { qtAddModule($$QTLIB, $$eval(QT.$${QTLIB}.want_private)) } +!isEmpty(BAD_QT):error("Unknown module(s) in QT: $$BAD_QT") !isEmpty(using_privates):!no_private_qt_headers_warning:if(!debug_and_release|!build_pass) { message("This project is using private headers and will therefore be tied to this specific Qt module build version.") |