Handle contains(CONFIG, static) in pro2cmake

Change-Id: I36717688dd3b2ff0f6730bf3d65be421e391895f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
This commit is contained in:
Alexandru Croitor 2019-08-20 16:18:02 +02:00
parent 54aeb4ccd7
commit 60ceb1b0c5

View File

@ -1014,6 +1014,7 @@ def map_condition(condition: str) -> str:
condition)
condition = re.sub(r'qtConfig\(opengl\.\*\)', r'QT_FEATURE_opengl', condition)
condition = re.sub(r'^win\*$', r'win', condition)
condition = re.sub(r'contains\(CONFIG, static\)', r'NOT QT_BUILD_SHARED_LIBS', condition)
def gcc_version_handler(match_obj: re.Match):
operator = match_obj.group(1)