summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2016-11-18 18:17:49 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2016-12-08 12:40:53 +0000
commite2978d6097be2313e49c57ec14618033cbfa7414 (patch)
treeb9ccc2e78f1869ed0d94c6569649c7de1488719b /mkspecs
parentf882d2f443a8950a2f784fa91b3ff10a645577f7 (diff)
move license check to qmake-based configure system
this also removes the need for passing pre-processed options via configure.cfg, so get rid of that. a somewhat unfortunate side effect is that the android-style-assets feature had to move back to the top level, as the licensing options depend on it. Started-by: Lars Knoll <lars.knoll@qt.io> Change-Id: Id4d1e0ba18b3e3104400293b8f0c7f2f65e68dea Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_configure.prf14
1 files changed, 11 insertions, 3 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index eaaa161270..74ad611ee5 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -28,6 +28,12 @@ defineTest(qtConfAddError) {
}
}
+defineTest(qtConfFatalError) {
+ qtConfAddError($$1, $$2)
+ qtConfPrintReport()
+ error()
+}
+
defineTest(qtConfCommandlineSetInput) {
arg = $${1}
val = $${2}
@@ -778,9 +784,7 @@ defineTest(qtConfTest_compile) {
defineTest(qtConfTest_verifySpec) {
qtConfTest_compile($$1): return(true)
- qtConfAddError("Cannot compile a minimal program. The toolchain or QMakeSpec is broken.", log)
- qtConfPrintReport()
- error()
+ qtConfFatalError("Cannot compile a minimal program. The toolchain or QMakeSpec is broken.", log)
}
defineTest(qtConfTest_files) {
@@ -1310,6 +1314,10 @@ defineTest(qtConfReport_error) {
qtConfAddError($${1}, log)
}
+defineTest(qtConfReport_fatal) {
+ qtConfFatalError($${1})
+}
+
defineTest(qtConfCreateReportRecurse) {
equals(2, false) {
indent = ""