summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-08-12 13:38:17 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-08-12 11:42:00 +0000
commite614e837fafc927d64ef4d9b5866cbccd0b44281 (patch)
tree7248bbe170263425a5a3d44fd4a883b25abb3ed5 /util
parent0f268277c55603037779adf12bd2537597340372 (diff)
Add QT_QML_DEBUG define conversion
Add QT_QML_DEBUG to target when we have qml_debug in qmake's CONFIG variable. Change-Id: I266c7313db12667498d4f770c73aec9e79c0b50e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 767a2b4371..e47cba50ab 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1362,6 +1362,9 @@ def write_defines(cm_fh: typing.IO[str], scope: Scope, cmake_parameter: str, *,
defines = [d.replace('=\\\\\\"$$PWD/\\\\\\"',
'="${CMAKE_CURRENT_SOURCE_DIR}/"') for d in defines]
+ if 'qml_debug' in scope.get('CONFIG'):
+ defines.append('QT_QML_DEBUG')
+
write_list(cm_fh, defines, cmake_parameter, indent, footer=footer)