xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/shaderc/shaderc_2022.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY  = "A collection of tools, libraries and tests for shader compilation"
2*4882a593SmuzhiyunDESCRIPTION = "The Shaderc library provides an API for compiling GLSL/HLSL \
3*4882a593Smuzhiyunsource code to SPIRV modules. It has been shipping in the Android NDK since version r12b."
4*4882a593SmuzhiyunSECTION = "graphics"
5*4882a593SmuzhiyunHOMEPAGE = "https://github.com/google/shaderc"
6*4882a593SmuzhiyunLICENSE = "Apache-2.0"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRCREV = "e4722b0ad49ee60c143d43baae8390f75ba27d2d"
10*4882a593SmuzhiyunSRC_URI = "git://github.com/google/shaderc.git;protocol=https;branch=main \
11*4882a593Smuzhiyun           file://0001-cmake-disable-building-external-dependencies.patch \
12*4882a593Smuzhiyun           file://0002-libshaderc_util-fix-glslang-header-file-location.patch \
13*4882a593Smuzhiyun           "
14*4882a593SmuzhiyunUPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
15*4882a593SmuzhiyunS = "${WORKDIR}/git"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyuninherit cmake python3native pkgconfig
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunDEPENDS = "spirv-headers spirv-tools glslang"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunEXTRA_OECMAKE = " \
22*4882a593Smuzhiyun    -DCMAKE_BUILD_TYPE=Release \
23*4882a593Smuzhiyun    -DBUILD_EXTERNAL=OFF \
24*4882a593Smuzhiyun    -DSHADERC_SKIP_TESTS=ON \
25*4882a593Smuzhiyun    -DSHADERC_SKIP_EXAMPLES=ON \
26*4882a593Smuzhiyun    -DSHADERC_SKIP_COPYRIGHT_CHECK=ON \
27*4882a593Smuzhiyun"
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
30