package/qt6/qt6base: add support for printsupport/cups

Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com>
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Jesse Van Gavere 2023-02-07 18:17:19 +01:00 committed by Thomas Petazzoni
parent 653e573436
commit 7d195622f2
2 changed files with 20 additions and 0 deletions

View File

@ -153,6 +153,14 @@ config BR2_PACKAGE_QT6BASE_WIDGETS
help help
This option enables the Qt6Widgets library. This option enables the Qt6Widgets library.
config BR2_PACKAGE_QT6BASE_PRINTSUPPORT
bool "printing support"
# yes, print support needs widgets
depends on BR2_PACKAGE_QT6BASE_WIDGETS
help
This option enables printing support, optionally using CUPS
if available.
endif endif
config BR2_PACKAGE_QT6BASE_NETWORK config BR2_PACKAGE_QT6BASE_NETWORK

View File

@ -207,6 +207,18 @@ else
QT6BASE_CONF_OPTS += -DFEATURE_jpeg=OFF QT6BASE_CONF_OPTS += -DFEATURE_jpeg=OFF
endif endif
ifeq ($(BR2_PACKAGE_QT6BASE_PRINTSUPPORT),y)
QT6BASE_CONF_OPTS += -DFEATURE_printsupport=ON
ifeq ($(BR2_PACKAGE_CUPS),y)
QT6BASE_CONF_OPTS += -DFEATURE_cups=ON
QT6BASE_DEPENDENCIES += cups
else
QT6BASE_CONF_OPTS += -DFEATURE_cups=OFF
endif
else
QT6BASE_CONF_OPTS += -DFEATURE_printsupport=OFF
endif
ifeq ($(BR2_PACKAGE_LIBDRM),y) ifeq ($(BR2_PACKAGE_LIBDRM),y)
QT6BASE_CONF_OPTS += -DFEATURE_kms=ON QT6BASE_CONF_OPTS += -DFEATURE_kms=ON
QT6BASE_DEPENDENCIES += libdrm QT6BASE_DEPENDENCIES += libdrm