blob: ad3f62ce17d4c1efaf3a61484d68e49e7fcbbc1b [file] [log] [blame]
Andrew Geisslerd1e89492021-02-12 15:35:20 -06001SUMMARY = "A collection of tools, libraries and tests for shader compilation"
2DESCRIPTION = "The Shaderc library provides an API for compiling GLSL/HLSL \
3source code to SPIRV modules. It has been shipping in the Android NDK since version r12b."
4SECTION = "graphics"
5HOMEPAGE = "https://github.com/google/shaderc"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
8
Andrew Geissler5f350902021-07-23 13:09:54 -04009SRCREV = "031a8c9715df5d7c69dcc1ee9d53cbfa35c7b026"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060010SRC_URI = "git://github.com/google/shaderc.git;protocol=https;branch=main \
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060011 file://0001-cmake-disable-building-external-dependencies.patch \
12 file://0002-libshaderc_util-fix-glslang-header-file-location.patch \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060013 "
14UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
15S = "${WORKDIR}/git"
16
Andrew Geissler5199d832021-09-24 16:47:35 -050017inherit cmake python3native pkgconfig
Andrew Geisslerd1e89492021-02-12 15:35:20 -060018
19DEPENDS = "spirv-headers spirv-tools glslang"
20
21EXTRA_OECMAKE = " \
22 -DCMAKE_BUILD_TYPE=Release \
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060023 -DBUILD_EXTERNAL=OFF \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060024 -DSHADERC_SKIP_TESTS=ON \
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060025 -DSHADERC_SKIP_EXAMPLES=ON \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060026"
27
28BBCLASSEXTEND = "native nativesdk"