Qmake: Introduce Qt deprecation macros

As the minimum build requirements are now Qt 5.9, enable the QT_DEPRECATED_SINCE
macro and set the deprecation target to 5.9 and earlier. This will make our build
fail if functions deprecated in Qt 5.9 or earlier are used.

Also, enable the QT_DEPRECATED_WARNINGS macro so our build system warns us when
we are using functions deprecated in newer versions of Qt so we can port away from
those too.
This commit is contained in:
Felix Kauselmann 2021-03-12 17:06:47 +01:00
parent 14d9ba9de5
commit 75c2618eff

View File

@ -39,6 +39,9 @@ minQtVersion(6, 0, 0) {
error(YACReader does not support building with Qt6 (yet))
}
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050900
DEFINES += QT_DEPRECATED_WARNINGS
# reduce log pollution
CONFIG += silent