qtshadertools: add runtime dependency to spirv-tools

Add runtime dependency to spirv-tools as the qsb utility can use
spirv-opt at runtime. Cannot include it for mingw32 toolchain
as compilation fails.

To support dunfell, add BBCLASSEXTEND append to the spirv-tools.

Fixes: QTBUG-113210
Change-Id: Icce264b1f2bff5f56cf2b40a0420c5001493e236
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 69a8018ec1)
This commit is contained in:
Samuli Piippo 2023-04-28 10:37:24 +00:00
parent 579a5e5440
commit 252c438708
3 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,11 @@ BBPATH .= ":${LAYERDIR}"
# We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
# bbappends for optional layers
BBFILES_DYNAMIC += " \
openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \
"
BBFILE_COLLECTIONS += "qt6-layer"
BBFILE_PATTERN_qt6-layer := "^${LAYERDIR}/"

View File

@ -0,0 +1 @@
BBCLASSEXTEND = "native nativesdk"

View File

@ -11,5 +11,8 @@ include recipes-qt/qt6/qt6.inc
DEPENDS = "qtbase qtshadertools-native"
RDEPENDS:${PN}-tools = "spirv-tools"
RDEPENDS:${PN}-tools:remove:mingw32 = "spirv-tools"
BBCLASSEXTEND = "native nativesdk"