package/qt6base: add vulkan option

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Adam Duskett 2023-08-30 13:54:46 -06:00 committed by Thomas Petazzoni
parent c6b2a5049e
commit 1c27f3a12d
2 changed files with 17 additions and 0 deletions

View File

@ -43,6 +43,16 @@ config BR2_PACKAGE_QT6BASE_GUI
if BR2_PACKAGE_QT6BASE_GUI
config BR2_PACKAGE_QT6BASE_VULKAN
bool "Vulkan support"
depends on BR2_INSTALL_LIBSTDCPP # vulkan-loader
depends on !BR2_STATIC_LIBS # vulkan-loader
depends on BR2_TOOLCHAIN_HAS_THREADS # vulkan-loader
select BR2_PACKAGE_VULKAN_HEADERS
select BR2_PACKAGE_VULKAN_LOADER
help
This option enables Vulkan support.
config BR2_PACKAGE_QT6BASE_LINUXFB
bool "linuxfb support"

View File

@ -127,6 +127,13 @@ QT6BASE_CONF_OPTS += \
-DFEATURE_vulkan=OFF
QT6BASE_DEPENDENCIES += freetype
ifeq ($(BR2_PACKAGE_QT6BASE_VULKAN),y)
QT6BASE_DEPENDENCIES += vulkan-headers vulkan-loader
QT6BASE_CONFIGURE_OPTS += -DFEATURE_vulkan=ON
else
QT6BASE_CONFIGURE_OPTS += -DFEATURE_vulkan=OFF
endif
ifeq ($(BR2_PACKAGE_QT6BASE_LINUXFB),y)
QT6BASE_CONF_OPTS += -DFEATURE_linuxfb=ON
else