summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@qt.io>2024-04-03 11:31:09 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-04-03 16:38:35 +0000
commit2a380a997ca6a5c4d1d2b531831d392877389f99 (patch)
tree1faf55264d9043236b930e658ef5964eb11c8075
parentece335f5a4d5b7029a9a10567901b0ffc2bb2704 (diff)
Fixup "Add option to chose python version for building 5.15 WebEngine"
It caused conflicts in top-level windows builds due to duplicate names for python tests. Change-Id: I869d7a87a8c562f9bf601fa9545d9a40df2a4166 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 17fd3176988586168bee8654008a097a5f23ec1d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--configure.pri2
-rw-r--r--mkspecs/features/functions.prf6
-rw-r--r--src/buildtools/configure.json8
3 files changed, 8 insertions, 8 deletions
diff --git a/configure.pri b/configure.pri
index 99cdbf72b..cb53c93b0 100644
--- a/configure.pri
+++ b/configure.pri
@@ -49,7 +49,7 @@ defineTest(qtConfReport_jumboBuild) {
qtConfReportPadded($${1}, $$mergeLimit)
}
-defineTest(qtConfTest_detectPython) {
+defineTest(qtConfTest_detectPython2) {
pythonOverride = $$eval(config.input.python_override)
!isEmpty(pythonOverride) {
python = $$qtConfFindInPath("$$pythonOverride$$EXE_SUFFIX")
diff --git a/mkspecs/features/functions.prf b/mkspecs/features/functions.prf
index 65500776b..7f630588a 100644
--- a/mkspecs/features/functions.prf
+++ b/mkspecs/features/functions.prf
@@ -44,11 +44,11 @@ defineReplace(which) {
# Returns the unquoted path to the python executable.
defineReplace(pythonPath) {
- isEmpty(QMAKE_PYTHON) {
+ isEmpty(QMAKE_PYTHON2) {
# Fallback for building QtWebEngine with Qt < 5.8
- QMAKE_PYTHON = python
+ QMAKE_PYTHON2 = python
}
- return($$QMAKE_PYTHON)
+ return($$QMAKE_PYTHON2)
}
# Returns the python executable for use with shell / make targets.
diff --git a/src/buildtools/configure.json b/src/buildtools/configure.json
index 17fc65106..5e5d9d725 100644
--- a/src/buildtools/configure.json
+++ b/src/buildtools/configure.json
@@ -318,8 +318,8 @@
"type": "detectNinja"
},
"webengine-python": {
- "label": "python",
- "type": "detectPython",
+ "label": "python2",
+ "type": "detectPython2",
"log": "location"
},
"webengine-winversion": {
@@ -446,11 +446,11 @@
"output": [ "privateFeature" ]
},
"webengine-python": {
- "label": "python",
+ "label": "python2",
"condition": "tests.webengine-python",
"output": [
"privateFeature",
- { "type": "varAssign", "name": "QMAKE_PYTHON", "value": "tests.webengine-python.location" }
+ { "type": "varAssign", "name": "QMAKE_PYTHON2", "value": "tests.webengine-python.location" }
]
},
"webengine-gperf": {