From 9ff9536efdc4e5cc7c9934ab739bb7a75b55fb29 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 15 May 2021 07:06:25 +0000 Subject: shaderc: upgrade 2020.5 -> 2021.0 Signed-off-by: Richard Purdie --- ...erc_util-fix-glslang-header-file-location.patch | 12 ++++------ meta/recipes-graphics/shaderc/shaderc_2020.5.bb | 28 ---------------------- meta/recipes-graphics/shaderc/shaderc_2021.0.bb | 28 ++++++++++++++++++++++ 3 files changed, 33 insertions(+), 35 deletions(-) delete mode 100644 meta/recipes-graphics/shaderc/shaderc_2020.5.bb create mode 100644 meta/recipes-graphics/shaderc/shaderc_2021.0.bb (limited to 'meta/recipes-graphics') diff --git a/meta/recipes-graphics/shaderc/files/0002-libshaderc_util-fix-glslang-header-file-location.patch b/meta/recipes-graphics/shaderc/files/0002-libshaderc_util-fix-glslang-header-file-location.patch index df670cdded..0e8ad7e4d2 100644 --- a/meta/recipes-graphics/shaderc/files/0002-libshaderc_util-fix-glslang-header-file-location.patch +++ b/meta/recipes-graphics/shaderc/files/0002-libshaderc_util-fix-glslang-header-file-location.patch @@ -1,17 +1,18 @@ -From 046c3c2da9c4ff66f14db5bd68e9557504a49241 Mon Sep 17 00:00:00 2001 +From d02ad48d5c9b48af70ddea2e6998081347ef82f3 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Sat, 13 Feb 2021 00:45:56 +0000 -Subject: [PATCH 2/3] libshaderc_util: fix glslang header file location +Subject: [PATCH] libshaderc_util: fix glslang header file location Upstream-Status: Pending Signed-off-by: Jose Quaresma + --- libshaderc_util/src/compiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libshaderc_util/src/compiler.cc b/libshaderc_util/src/compiler.cc -index c5ce37e..4703634 100644 +index 051558b..9c4476c 100644 --- a/libshaderc_util/src/compiler.cc +++ b/libshaderc_util/src/compiler.cc @@ -20,7 +20,7 @@ @@ -21,8 +22,5 @@ index c5ce37e..4703634 100644 -#include "SPIRV/GlslangToSpv.h" +#include "glslang/SPIRV/GlslangToSpv.h" #include "libshaderc_util/format.h" - #include "libshaderc_util/io.h" + #include "libshaderc_util/io_shaderc.h" #include "libshaderc_util/message.h" --- -2.30.1 - diff --git a/meta/recipes-graphics/shaderc/shaderc_2020.5.bb b/meta/recipes-graphics/shaderc/shaderc_2020.5.bb deleted file mode 100644 index ce51aab034..0000000000 --- a/meta/recipes-graphics/shaderc/shaderc_2020.5.bb +++ /dev/null @@ -1,28 +0,0 @@ -SUMMARY = "A collection of tools, libraries and tests for shader compilation" -DESCRIPTION = "The Shaderc library provides an API for compiling GLSL/HLSL \ -source code to SPIRV modules. It has been shipping in the Android NDK since version r12b." -SECTION = "graphics" -HOMEPAGE = "https://github.com/google/shaderc" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" - -SRCREV = "f3e39a7eed682faececb73f0b85717f2f44ee9ba" -SRC_URI = "git://github.com/google/shaderc.git;protocol=https;branch=main \ - file://0001-cmake-disable-building-external-dependencies.patch \ - file://0002-libshaderc_util-fix-glslang-header-file-location.patch \ - " -UPSTREAM_CHECK_GITTAGREGEX = "^v(?P\d+(\.\d+)+)$" -S = "${WORKDIR}/git" - -inherit cmake python3native - -DEPENDS = "spirv-headers spirv-tools glslang" - -EXTRA_OECMAKE = " \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_EXTERNAL=OFF \ - -DSHADERC_SKIP_TESTS=ON \ - -DSHADERC_SKIP_EXAMPLES=ON \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-graphics/shaderc/shaderc_2021.0.bb b/meta/recipes-graphics/shaderc/shaderc_2021.0.bb new file mode 100644 index 0000000000..3d59e0c38c --- /dev/null +++ b/meta/recipes-graphics/shaderc/shaderc_2021.0.bb @@ -0,0 +1,28 @@ +SUMMARY = "A collection of tools, libraries and tests for shader compilation" +DESCRIPTION = "The Shaderc library provides an API for compiling GLSL/HLSL \ +source code to SPIRV modules. It has been shipping in the Android NDK since version r12b." +SECTION = "graphics" +HOMEPAGE = "https://github.com/google/shaderc" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRCREV = "1a3e2aaab191f44644e899e29ab7bac50bebdeb8" +SRC_URI = "git://github.com/google/shaderc.git;protocol=https;branch=main \ + file://0001-cmake-disable-building-external-dependencies.patch \ + file://0002-libshaderc_util-fix-glslang-header-file-location.patch \ + " +UPSTREAM_CHECK_GITTAGREGEX = "^v(?P\d+(\.\d+)+)$" +S = "${WORKDIR}/git" + +inherit cmake python3native + +DEPENDS = "spirv-headers spirv-tools glslang" + +EXTRA_OECMAKE = " \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_EXTERNAL=OFF \ + -DSHADERC_SKIP_TESTS=ON \ + -DSHADERC_SKIP_EXAMPLES=ON \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit 1.2.3-korg