summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2020-11-06 17:18:18 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2020-11-09 18:47:51 +0100
commit76230d98795a2e7a365328eb693ff57f6ddd7f1d (patch)
tree406a34ba3194f8ed7253a8968e404439f2640c4c /util
parent632da28e9ca1d67639f60e4c20ca54b38ae10dcd (diff)
CMake: Add handling of PLUGIN_EXTENDS for generic plugins
Modify pro2cmake converter to add extra argument to qt_internal_add_plugin. DEFINE_IF FALSE is added to generic plugins those had "PLUGIN_EXTENDS = - " specified in .pro files. Fixes: QTBUG-87861 Change-Id: I9269df19a32a088f5261f50e7ffff6d29c3d605f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 12b52a6c18..f2d5c7562d 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -3913,6 +3913,10 @@ def write_plugin(cm_fh, scope, *, indent: int = 0) -> str:
if "static" in scope.get("CONFIG"):
extra.append("STATIC")
+ plugin_extends = scope.get_string("PLUGIN_EXTENDS")
+ if plugin_type != "platform" and plugin_extends == "-":
+ extra.append("DEFAULT_IF FALSE")
+
forward_target_info(scope, extra)
write_main_part(