Enable skipping plugins search at build time.
authorLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Fri, 2 Aug 2024 15:24:23 +0000 (18:24 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 2 Aug 2024 15:24:23 +0000 (18:24 +0300)
Forwarded: not-needed

This patch sets
QT_SKIP_AUTO_PLUGIN_INCLUSION and QT_SKIP_AUTO_QML_PLUGIN_INCLUSION to ON
by default, thus avoiding unnecesary build dependencies on plugins.

The variables can still be set to OFF by the user at build time, allowing
them to find the packages if necessary. But if you need so for a Debian
package please reach the Qt maintainers first. We want to know why you
need to do so. Thanks in advance!

Gbp-Pq: Name enable_skip_plugins.patch

cmake/QtPlugins.cmake.in
cmake/QtPostProcessHelpers.cmake

index c951eaae42dbb696fdcb0e97066b17af24e10f02..bd6a6eafaf6c9b9e340e012321563e73c94ef25c 100644 (file)
@@ -3,7 +3,7 @@ include_guard(DIRECTORY)
 
 # Distributions should probably change this default.
 if(NOT DEFINED QT_SKIP_AUTO_PLUGIN_INCLUSION)
-    set(QT_SKIP_AUTO_PLUGIN_INCLUSION OFF)
+    set(QT_SKIP_AUTO_PLUGIN_INCLUSION ON)
 endif()
 
 if(QT_REPO_MODULE_VERSION)
index 7ccfc76616c30308abd6b62841e99bf850200f69..674868b6f006434422d87bff7550335365b0293a 100644 (file)
@@ -448,7 +448,7 @@ function(qt_internal_create_plugins_auto_inclusion_files)
 
 # Distributions should probably change this default.
 if(NOT DEFINED QT_SKIP_AUTO_QML_PLUGIN_INCLUSION)
-    set(QT_SKIP_AUTO_QML_PLUGIN_INCLUSION OFF)
+    set(QT_SKIP_AUTO_QML_PLUGIN_INCLUSION ON)
 endif()
 
 if(QT_REPO_MODULE_VERSION)