summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/shaderc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/shaderc')
-rw-r--r--meta/recipes-graphics/shaderc/shaderc_2020.4.bb12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb
index ee9b118371..e886e81d0e 100644
--- a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb
+++ b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb
@@ -19,15 +19,17 @@ DEPENDS = "spirv-tools glslang"
19 19
20EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON" 20EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON"
21 21
22BBCLASSEXTEND = "native nativesdk"
23
24# TODO: probably there is better solution for this.
25# I don't know any method for get the version of a receipe in DEPENDS,
26# so do this ugly hack
27inherit pkgconfig
28DEPENDS += "glslang-native"
22do_configure_prepend() { 29do_configure_prepend() {
23 # TODO: probably there is better solution for this.
24 # I dont know any method for get the version of a receipe in DEPENDS
25 # so do this ugly hack
26 cat <<- EOF > ${S}/glslc/src/build-version.inc 30 cat <<- EOF > ${S}/glslc/src/build-version.inc
27"${PV}\\n" 31"${PV}\\n"
28"$(pkg-config --modversion SPIRV-Tools)\\n" 32"$(pkg-config --modversion SPIRV-Tools)\\n"
29"$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n" 33"$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n"
30EOF 34EOF
31} 35}
32
33BBCLASSEXTEND = "native nativesdk"