From c777bd529a580bb04c51e03af1c27e17d7db9b4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lisandro=20Dami=C3=A1n=20Nicanor=20P=C3=A9rez=20Meyer?= Date: Sun, 2 Feb 2025 13:00:45 +0100 Subject: [PATCH] Enable skipping plugins search at build time. 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 | 2 +- cmake/QtPostProcessHelpers.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/QtPlugins.cmake.in b/cmake/QtPlugins.cmake.in index e668a4cb..d086316b 100644 --- a/cmake/QtPlugins.cmake.in +++ b/cmake/QtPlugins.cmake.in @@ -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) diff --git a/cmake/QtPostProcessHelpers.cmake b/cmake/QtPostProcessHelpers.cmake index 44df1871..fb6796af 100644 --- a/cmake/QtPostProcessHelpers.cmake +++ b/cmake/QtPostProcessHelpers.cmake @@ -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 \"\") -- 2.30.2