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>
This commit is contained in:
Leander Beernaert 2019-08-12 13:38:17 +02:00
parent 0f268277c5
commit e614e837fa

View File

@ -1362,6 +1362,9 @@ def write_defines(cm_fh: typing.IO[str], scope: Scope, cmake_parameter: str, *,
defines = [d.replace('=\\\\\\"$$PWD/\\\\\\"', defines = [d.replace('=\\\\\\"$$PWD/\\\\\\"',
'="${CMAKE_CURRENT_SOURCE_DIR}/"') for d in defines] '="${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) write_list(cm_fh, defines, cmake_parameter, indent, footer=footer)