From: Jose Quaresma Date: Sun, 24 Jan 2021 18:07:57 +0000 (+0000) Subject: shaderc: avoid reproducible issues X-Git-Tag: uninative-2.10~71 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1fb9e706ba83df272ca924d8ea65460bb5675aa8;p=openembedded-core.git shaderc: avoid reproducible issues Signed-off-by: Jose Quaresma Signed-off-by: Richard Purdie --- 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" EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON" +BBCLASSEXTEND = "native nativesdk" + +# TODO: probably there is better solution for this. +# I don't know any method for get the version of a receipe in DEPENDS, +# so do this ugly hack +inherit pkgconfig +DEPENDS += "glslang-native" do_configure_prepend() { - # TODO: probably there is better solution for this. - # I dont know any method for get the version of a receipe in DEPENDS - # so do this ugly hack cat <<- EOF > ${S}/glslc/src/build-version.inc "${PV}\\n" "$(pkg-config --modversion SPIRV-Tools)\\n" "$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n" EOF } - -BBCLASSEXTEND = "native nativesdk"