package/qt6/qt6base: add blind option to enable GUI support on host

We need host-qt6base with Gui support when building host-qt6shadertools,
otherwise the build is skipped and no qsb host tool is generated.
qt6shadertools fail to build if qsb is not available.

Signed-off-by: Roy Kollen Svendsen <roykollensvendsen@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Roy Kollen Svendsen
2024-06-25 23:18:26 +02:00
committed by Thomas Petazzoni
parent 00484ef59c
commit e4e4fd4aea
4 changed files with 36 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ menu "Host utilities"
source "package/python3/Config.in.host"
source "package/qemu/Config.in.host"
source "package/qoriq-rcw/Config.in.host"
source "package/qt6/Config.in.host"
source "package/raspberrypi-usbboot/Config.in.host"
source "package/rauc/Config.in.host"
source "package/riscv-isa-sim/Config.in.host"

View File

@@ -0,0 +1,5 @@
if BR2_PACKAGE_QT6
source "package/qt6/qt6base/Config.in.host"
endif

View File

@@ -0,0 +1,4 @@
# Select this if you need host qt6 tools that require the Qt::Gui module (e.g.
# Qt Shader Baker(qsb)).
config BR2_PACKAGE_HOST_QT6BASE_GUI
bool

View File

@@ -84,7 +84,6 @@ HOST_QT6BASE_DEPENDENCIES = \
host-pcre2 \
host-zlib
HOST_QT6BASE_CONF_OPTS = \
-DFEATURE_gui=OFF \
-DFEATURE_concurrent=OFF \
-DFEATURE_xml=ON \
-DFEATURE_sql=OFF \
@@ -98,6 +97,32 @@ HOST_QT6BASE_CONF_OPTS = \
-DFEATURE_system_pcre2=ON \
-DFEATURE_system_zlib=ON
# We need host-qt6base with Gui support when building host-qt6shadertools,
# otherwise the build is skipped and no qsb host tool is generated.
# qt6shadertools fail to build if qsb is not available.
ifeq ($(BR2_PACKAGE_HOST_QT6BASE_GUI),y)
HOST_QT6BASE_CONF_OPTS += \
-DFEATURE_gui=ON \
-DFEATURE_freetype=OFF \
-DFEATURE_vulkan=OFF \
-DFEATURE_linuxfb=ON \
-DFEATURE_xcb=OFF \
-DFEATURE_opengl=OFF -DINPUT_opengl=no \
-DFEATURE_harfbuzz=OFF \
-DFEATURE_png=OFF \
-DFEATURE_gif=OFF \
-DFEATURE_jpeg=OFF \
-DFEATURE_printsupport=OFF \
-DFEATURE_kms=OFF \
-DFEATURE_fontconfig=OFF \
-DFEATURE_widgets=OFF \
-DFEATURE_libinput=OFF \
-DFEATURE_tslib=OFF \
-DFEATURE_eglfs=OFF
else
HOST_QT6BASE_CONF_OPTS += -DFEATURE_gui=OFF
endif
# Conditional blocks below are ordered by alphabetic ordering of the
# BR2_PACKAGE_* option.