package/qt6/qt6base: add support for network module

Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Jesse Van Gavere 2022-08-26 15:54:37 +02:00 committed by Thomas Petazzoni
parent 04d3aef680
commit 26ebde7013
2 changed files with 15 additions and 0 deletions

View File

@ -14,3 +14,12 @@ config BR2_PACKAGE_QT6BASE
QtWidgets, etc.
http://qt.io
if BR2_PACKAGE_QT6BASE
config BR2_PACKAGE_QT6BASE_NETWORK
bool "network module"
help
This options enables the Qt6Network library.
endif

View File

@ -75,5 +75,11 @@ define HOST_QT6BASE_INSTALL_CMDS
$(HOST_MAKE_ENV) $(BR2_CMAKE) --install $(HOST_QT6BASE_BUILDDIR)
endef
ifeq ($(BR2_PACKAGE_QT6BASE_NETWORK),y)
QT6BASE_CONF_OPTS += -DFEATURE_network=ON
else
QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
endif
$(eval $(cmake-package))
$(eval $(host-cmake-package))