@@ -22,6 +22,16 @@ config BR2_PACKAGE_QT6BASE_CONCURRENT
help
This options enables the Qt6Concurrent library.
+config BR2_PACKAGE_QT6BASE_CUSTOM_CONF_OPTS
+ string "Custom configuration options"
+ help
+ Define custom qt6 configuration options which can be used to
+ enable or disable options not managed by buildroot. These
+ options are appended to the ones generated by buildroot and
+ passed to qt6base during configuration.
+
+ Use cmake style '-Doption_name=ON' or -Doption_name=OFF'.
+
config BR2_PACKAGE_QT6BASE_DBUS
bool "DBus module"
depends on BR2_TOOLCHAIN_HAS_THREADS
@@ -184,5 +184,8 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
QT6BASE_CONF_OPTS += -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
endif
+# Must be last so can override all options set by Buildroot
+QT6BASE_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_QT6BASE_CUSTOM_CONF_OPTS))
+
$(eval $(cmake-package))
$(eval $(host-cmake-package))
Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com> --- package/qt6/qt6base/Config.in | 10 ++++++++++ package/qt6/qt6base/qt6base.mk | 3 +++ 2 files changed, 13 insertions(+)