# Copyright 2019-20 NXP
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Package group for i.MX Qt6"
LICENSE = "MIT"

PACKAGE_ARCH = "${TUNE_PKGARCH}"

inherit packagegroup

RDEPENDS:${PN} = " \
    ${QT6_IMAGE_INSTALL_APPS} \
    ${QT6_IMAGE_INSTALL_CINEMATICEXPERIENCE} \
    ${QT6_IMAGE_INSTALL_EXAMPLES} \
    ${QT6_IMAGE_INSTALL_FONTS} \
    ${QT6_IMAGE_INSTALL_QUICK3D} \
    ${@bb.utils.contains('DISTRO_FEATURES', 'x11',     'libxkbcommon', '', d)} \
    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland qtwayland-plugins', '', d)}"

QT6_IMAGE_INSTALL_APPS = ""
#QT6_IMAGE_INSTALL_APPS:imxgpu3d = "${@bb.utils.contains("MACHINE_GSTREAMER_1_0_PLUGIN", "imx-gst1.0-plugin", "imx-qtapplications", "", d)}"

QT6_IMAGE_INSTALL_CINEMATICEXPERIENCE         = ""
QT6_IMAGE_INSTALL_CINEMATICEXPERIENCE:imxgpu  = "cinematicexperience-rhi cinematicexperience-rhi-tools"
QT6_IMAGE_INSTALL_CINEMATICEXPERIENCE:ccimx93 = "cinematicexperience-rhi cinematicexperience-rhi-tools"
QT6_IMAGE_INSTALL_CINEMATICEXPERIENCE:ccmp15 = "cinematicexperience-rhi cinematicexperience-rhi-tools"

QT6_IMAGE_INSTALL_EXAMPLES = "qtbase-examples qtdeclarative-examples"

QT6_IMAGE_INSTALL_FONTS = "ttf-dejavu-common ttf-dejavu-sans ttf-dejavu-sans-mono ttf-dejavu-serif "

QT6_IMAGE_INSTALL_QUICK3D = "qtquick3d qtquick3d-examples"
# Quick3d does not work on systems without a proper GPU
QT6_IMAGE_INSTALL_QUICK3D:ccimx93 = ""
