From e4d03c40f6843b05d7f9259c73a4334fee52e1a8 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Sun, 24 Jan 2021 18:07:57 +0000 Subject: shaderc: avoid reproducible issues (From OE-Core rev: 1fb9e706ba83df272ca924d8ea65460bb5675aa8) Signed-off-by: Jose Quaresma Signed-off-by: Richard Purdie --- meta/recipes-graphics/shaderc/shaderc_2020.4.bb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'meta/recipes-graphics') 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" -- cgit v1.2.3-54-g00ecf