@@ -57,4 +57,19 @@ config BR2_PACKAGE_QT6BASE_DBUS
help
This option enables the D-Bus module.
+config BR2_PACKAGE_QT6BASE_ICU
+ bool "Enable ICU support"
+ depends on !BR2_BINFMT_FLAT # icu
+ depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
+ select BR2_PACKAGE_ICU
+ help
+ This option enables ICU support in Qt6. This is for example
+ needed for Qt6Webkit.
+
+comment "icu support needs a toolchain w/ gcc >= 4.9, host gcc >= 4.9"
+ depends on !BR2_BINFMT_FLAT
+ depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+ !BR2_HOST_GCC_AT_LEAST_4_9
+
endif
@@ -115,6 +115,13 @@ QT6BASE_CONF_OPTS += -DFEATURE_dbus=OFF
HOST_QT6BASE_CONF_OPTS += -DFEATURE_dbus=OFF
endif
+ifeq ($(BR2_PACKAGE_QT6BASE_ICU),y)
+QT6BASE_CONF_OPTS += -DFEATURE_icu=ON
+QT6BASE_DEPENDENCIES += icu
+else
+QT6BASE_CONF_OPTS += -DFEATURE_icu=OFF
+endif
+
ifeq ($(BR2_PACKAGE_QT6BASE_EXAMPLES),y)
QT6BASE_CONF_OPTS += -DQT_BUILD_EXAMPLES=ON
else