Enable skipping plugins search at build time.
authorLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Wed, 23 Oct 2024 17:35:31 +0000 (19:35 +0200)
committerPino Toscano <pino@debian.org>
Wed, 23 Oct 2024 17:35:31 +0000 (19:35 +0200)
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 e668a4cbefef418adfd7369e82c52c03b48eac00..d086316b4c7c68a5e7b2c96aca0a2bad53a6f676 100644 (file)
@@ -6,7 +6,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(NOT QT_NO_CREATE_TARGETS AND NOT QT_SKIP_AUTO_PLUGIN_INCLUSION)
index 44df18714f7d0b59c464ac155e62541b69c9fb01..fb6796afccc28f83ac5adb5971126902c8322815 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()
 
 set(__qt_qml_plugins_config_file_list \"\")