summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-08-18 10:59:03 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-08-19 08:28:50 +0200
commit5f729da74a5c12a8d33389dcc874c8277044abe0 (patch)
tree52b2d498e949155cdc43efd2a48066b0c7d7ceec /util
parent3911be61602695ed65e33e54bee38ee8bcd92539 (diff)
CMake: Implement configure -qreal <type>
The configure argument -qreal <type> maps to the CMake argument -DQT_COORD_TYPE=<type>. Fixes: QTBUG-83325 Change-Id: I94970f31ccfb241b1dd4f1d9b6cef25d6684dc05 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/configurejson2cmake.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index b3b0a9bc01..5e7036e614 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -886,6 +886,21 @@ def get_feature_mapping():
"profile": None,
"qmakeargs": None,
"qpa_default_platform": None, # Not a bool!
+ "qreal" : {
+ "condition": "DEFINED QT_COORD_TYPE AND NOT QT_COORD_TYPE STREQUAL \"double\"",
+ "output": [
+ {
+ "type": "define",
+ "name": "QT_COORD_TYPE",
+ "value": "${QT_COORD_TYPE}",
+ },
+ {
+ "type": "define",
+ "name": "QT_COORD_TYPE_STRING",
+ "value": "\\\"${QT_COORD_TYPE}\\\"",
+ },
+ ],
+ },
"release": None,
"release_tools": None,
"rpath": {