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)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Samuli Piippo 2023-04-28 10:37:24 +00:00 committed by Qt Cherry-pick Bot
parent 7d08b331d5
commit 72015d3360
3 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILES_DYNAMIC += " \
meta-python:${LAYERDIR}/dynamic-layers/meta-python/*/*/*.bb \
meta-python:${LAYERDIR}/dynamic-layers/meta-python/*/*/*.bbappend \
openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \
"
BBFILE_COLLECTIONS += "qt6-layer"

View File

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

View File

@ -17,5 +17,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"