diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-11-08 11:22:02 +0100 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-11-08 10:27:54 +0000 |
commit | 942d391b53a87ed8b313b48dbf57b2cedcd3e896 (patch) | |
tree | 39719ec148ca695963d412f7642417a0d94b976a | |
parent | 706e7fdb0ca5ab2beabecf39809c032bd98ac84a (diff) |
Add condition maps for special cases in tests/manual
Change-Id: I426766c68f6f118d0706455689d968534e406d3d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rwxr-xr-x | util/cmake/pro2cmake.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 87e593a423..b8588203bd 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -1879,6 +1879,9 @@ def map_to_cmake_condition(condition: str = "") -> str: r'(TEST_architecture_arch STREQUAL "\1")', condition or "", ) + condition = condition.replace('QT___contains___opengl', 'QT_FEATURE_opengl') + condition = condition.replace('QT___contains___widgets', 'QT_FEATURE_widgets') + condition = condition.replace('DEFINES___contains___QT_NO_PRINTER', '(QT_FEATURE_printer EQUAL FALSE)') return condition |