summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-09-25 13:48:26 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-09-27 08:42:59 +0000
commit316353b3e00a08cbf9bb93d2d94e9e9693d3b5a5 (patch)
tree76306c47fd7df0bb732de58c3de92366bd9e1447 /util
parent7bed351c6c19cb6cd2b1ef8cf2695e1a120ab2c3 (diff)
pro2cmake: Handle one more hardcoded condition CONFIG(osx)
We can't really handle this in a generic way now, because the values of CONFIG() can not be directly mapped to features. It might be possible in the future if we make sure that all configure.json entries that have output publicConfig or privateConfig also generate a feature. For now just hardcode the case. Change-Id: Ie6b82b87973deb84012c3620b41920b343ffb2da Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index bb5c23f8da..46cce9b78b 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1488,6 +1488,7 @@ def map_condition(condition: str) -> str:
condition = re.sub(r"^no-png$", r"NOT QT_FEATURE_png", condition)
condition = re.sub(r"contains\(CONFIG, static\)", r"NOT QT_BUILD_SHARED_LIBS", condition)
condition = re.sub(r"contains\(QT_CONFIG,\w*shared\)", r"QT_BUILD_SHARED_LIBS", condition)
+ condition = re.sub(r"CONFIG\(osx\)", r"APPLE_OSX", condition)
def gcc_version_handler(match_obj: Match):
operator = match_obj.group(1)