@@ -44,4 +44,12 @@ config BR2_PACKAGE_QT6BASE_XML
help
This options enables the Qt6Xml library.
+config BR2_PACKAGE_QT6BASE_DBUS
+ bool "DBus module"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU
+ select BR2_PACKAGE_DBUS
+ help
+ This option enables the D-Bus module.
+
endif
@@ -77,6 +77,17 @@ define HOST_QT6BASE_INSTALL_CMDS
$(HOST_MAKE_ENV) $(BR2_CMAKE) --install $(HOST_QT6BASE_BUILDDIR)
endef
+ifeq ($(BR2_PACKAGE_QT6BASE_DBUS),y)
+QT6BASE_CONF_OPTS += -DFEATURE_dbus=ON
+QT6BASE_CONF_OPTS += -DINPUT_dbus=linked
+QT6BASE_DEPENDENCIES += dbus
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_dbus=ON
+HOST_QT6BASE_DEPENDENCIES += host-dbus
+else
+QT6BASE_CONF_OPTS += -DFEATURE_dbus=OFF
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_dbus=OFF
+endif
+
ifeq ($(BR2_PACKAGE_QT6BASE_EXAMPLES),y)
QT6BASE_CONF_OPTS += -DQT_BUILD_EXAMPLES=ON
else