summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
authorViktor Engelmann <viktor.engelmann@qt.io>2017-07-04 11:57:09 +0200
committerViktor Engelmann <viktor.engelmann@qt.io>2017-07-05 09:24:52 +0000
commitce1964ddcff9a213ad33fc8ba3a35b6d4322fadf (patch)
treeb582b358d864adf8ecf9d47ff00bc0c26c6772e3 /configure.json
parentda2e7b1331cb27142058a9f1d1debd363c5dd151 (diff)
Add Configure-Time Tests for gperf, flex and bison
Configure-Time tests for presence of (required) gperf, bison and flex are added to configure.pri and configure.json, so that we can decide early on to skip the build, instead of starting a build that will fail much later, yield incomprehensible error messages and make the build of the complete Qt framework fail. Task-number: QTBUG-52805 Change-Id: I7dab49e6e8672b72901519ad7d88de97197fe587 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json42
1 files changed, 42 insertions, 0 deletions
diff --git a/configure.json b/configure.json
index e82247ec5..69d261a00 100644
--- a/configure.json
+++ b/configure.json
@@ -67,6 +67,18 @@
"type": "detectPython2",
"log": "location"
},
+ "gperf": {
+ "label": "gperf",
+ "type": "detectGperf"
+ },
+ "bison": {
+ "label": "bison",
+ "type": "detectBison"
+ },
+ "flex": {
+ "label": "flex",
+ "type": "detectFlex"
+ },
"ninja": {
"label": "system ninja",
"type": "detectNinja"
@@ -89,6 +101,21 @@
{ "type": "varAssign", "name": "QMAKE_PYTHON2", "value": "tests.python2.location" }
]
},
+ "gperf": {
+ "label": "gperf",
+ "condition": "tests.gperf",
+ "output": [ "privateFeature" ]
+ },
+ "bison": {
+ "label": "bison",
+ "condition": "tests.bison",
+ "output": [ "privateFeature" ]
+ },
+ "flex": {
+ "label": "flex",
+ "condition": "tests.flex",
+ "output": [ "privateFeature" ]
+ },
"embedded": {
"label": "Embedded build",
"purpose": "Enables the embedded build configuration.",
@@ -185,6 +212,21 @@
"type": "warning",
"condition": "!features.python2",
"message": "Python version 2 (2.7.5 or later) is required to build QtWebEngine."
+ },
+ {
+ "type": "warning",
+ "condition": "!features.gperf",
+ "message": "gperf is required to build QtWebEngine."
+ },
+ {
+ "type": "warning",
+ "condition": "!features.bison",
+ "message": "bison is required to build QtWebEngine."
+ },
+ {
+ "type": "warning",
+ "condition": "!features.flex",
+ "message": "flex is required to build QtWebEngine."
}
],