summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-06-04 17:34:27 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-06-05 09:15:04 +0000
commit2401435d89c62be48ee7cf798aa3f47fb3faf670 (patch)
tree278fb210d6fb41ef16a657991e53eb8da0c49182 /util
parentbfa209dfa557e7c30d654add09f5c8f97cfc2492 (diff)
Map module.gui to if TARGET Qt::Gui in configure.cmake
Some features check for module / target existence. Adapt conversion script to handle that. Reland after fixing it. Change-Id: If4fb942c2e0d16e76a0b9b767bf478527851b0f7 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/configurejson2cmake.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 890d4dfc5f..2de2567803 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -281,6 +281,8 @@ def map_condition(condition):
elif match.group(1) == 'config':
substitution = map_platform(match.group(2))
+ elif match.group(1) == 'module':
+ substitution = 'TARGET {}'.format(map_qt_library(match.group(2)))
elif match.group(1) == 'arch':
if match.group(2) == 'i386':