DESCRIPTION = "PetaLinux Qt additional supported packages"

inherit packagegroup distro_features_check

ANY_OF_DISTRO_FEATURES = "x11 fbdev wayland"

QT_EXTENDED_PACKAGES = " \
	ruby \
	packagegroup-petalinux-qt \
	qtbase-mkspecs \
	qtbase-plugins \
	qtsystems-mkspecs \
	qttranslations-qtbase \
	qttranslations-qthelp \
	qtconnectivity-mkspecs \
	qttranslations-qtconnectivity \
	qtdeclarative-mkspecs \
	qttranslations-qmlviewer \
	qttranslations-qtdeclarative \
	qtenginio-mkspecs \
	qtimageformats-plugins \
	qtlocation-mkspecs \
	qtlocation-plugins \
	qttranslations-qtmultimedia \
	qtscript-mkspecs \
	qttranslations-qtscript \
	qtsensors-mkspecs \
	qtsensors-plugins \
	qtserialport-mkspecs \
	qtsvg-mkspecs \
	qtsvg-plugins \
	qtwebsockets-mkspecs \
	qttranslations-qtwebsockets \
	qtwebchannel-mkspecs \
	qtxmlpatterns-mkspecs \
	qttranslations-qtxmlpatterns \
	qtwebkit-mkspecs \
	qtx11extras \
	"
RDEPENDS_${PN} = "${QT_EXTENDED_PACKAGES}"

DESCRIPTION = "PetaLinux Qt additional supported packages"

inherit packagegroup distro_features_check

ANY_OF_DISTRO_FEATURES = "x11 fbdev wayland"

QT_EXTENDED_PACKAGES = " \
	ruby \
	packagegroup-petalinux-qt \
	qtbase-mkspecs \
	qtbase-plugins \
	qtsystems-mkspecs \
	qttranslations-qtbase \
	qttranslations-qthelp \
	qtconnectivity-mkspecs \
	qttranslations-qtconnectivity \
	qtdeclarative-mkspecs \
	qttranslations-qmlviewer \
	qttranslations-qtdeclarative \
	qtenginio-mkspecs \
	qtimageformats-plugins \
	qtlocation-mkspecs \
	qtlocation-plugins \
	qttranslations-qtmultimedia \
	qtscript-mkspecs \
	qttranslations-qtscript \
	qtsensors-mkspecs \
	qtsensors-plugins \
	qtserialport-mkspecs \
	qtsvg-mkspecs \
	qtsvg-plugins \
	qtwebsockets-mkspecs \
	qttranslations-qtwebsockets \
	qtwebchannel-mkspecs \
	qtxmlpatterns-mkspecs \
	qttranslations-qtxmlpatterns \
	qtwebkit-mkspecs \
	${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'qtx11extras', '', d)} \
	"
RDEPENDS_${PN} = "${QT_EXTENDED_PACKAGES}"

Build qtx11extras only if distro contains X11
qt-extended.bb: Build qtx11extras only if distro contains X11

The packagegroup should build qtx11extras only when X11 is included in
DISTRO_FEATURES, else the build will break if the user wants to add
this packagegroup for fbdev.

Signed-off-by: Madhurkiran Harikrishnan <3633e2a03d0f30b60eeabe41be72b6756a2e9110@xilinx.com>
Signed-off-by: Jaewon Lee <1b369288d13b7b5cc9a37dd614e864b90fd18321@xilinx.com>
Signed-off-by: Manjukumar Matha <4c64a17569570cb9f1048973bce031c402b55312@xilinx.com>
