diff options
Diffstat (limited to 'meta/recipes-graphics/spir/spirv-tools_1.3.261.1.bb')
-rw-r--r-- | meta/recipes-graphics/spir/spirv-tools_1.3.261.1.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-graphics/spir/spirv-tools_1.3.261.1.bb b/meta/recipes-graphics/spir/spirv-tools_1.3.261.1.bb new file mode 100644 index 0000000000..6904288299 --- /dev/null +++ b/meta/recipes-graphics/spir/spirv-tools_1.3.261.1.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | SUMMARY = "The SPIR-V Tools project provides an API and commands for \ | ||
2 | processing SPIR-V modules" | ||
3 | DESCRIPTION = "The project includes an assembler, binary module parser, \ | ||
4 | disassembler, validator, and optimizer for SPIR-V." | ||
5 | HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools" | ||
6 | SECTION = "graphics" | ||
7 | LICENSE = "Apache-2.0" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
9 | |||
10 | SRCREV = "e553b884c7c9febaa4e52334f683641fb5f196a0" | ||
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=main;protocol=https" | ||
12 | PE = "1" | ||
13 | # These recipes need to be updated in lockstep with each other: | ||
14 | # glslang, vulkan-headers, vulkan-loader, vulkan-tools, spirv-headers, spirv-tools | ||
15 | # The tags versions should always be sdk-x.y.z, as this is what | ||
16 | # upstream considers a release. | ||
17 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | inherit cmake | ||
21 | |||
22 | DEPENDS = "spirv-headers" | ||
23 | |||
24 | EXTRA_OECMAKE += "\ | ||
25 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ | ||
26 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ | ||
27 | -DBUILD_SHARED_LIBS=ON \ | ||
28 | -DSPIRV_SKIP_TESTS=ON \ | ||
29 | " | ||
30 | |||
31 | do_install:append:class-target() { | ||
32 | # Properly set _IMPORT_PREFIX in INTERFACE_LINK_LIBRARIES so that dependent | ||
33 | # tools can find the right library | ||
34 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ | ||
35 | -e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}/${baselib}":' | ||
36 | } | ||
37 | |||
38 | # all the libraries are unversioned, so don't pack it on PN-dev | ||
39 | SOLIBS = ".so" | ||
40 | FILES_SOLIBSDEV = "" | ||
41 | |||
42 | PACKAGES =+ "${PN}-lesspipe" | ||
43 | FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" | ||
44 | RDEPENDS:${PN}-lesspipe += "${PN} bash" | ||
45 | |||
46 | BBCLASSEXTEND = "native nativesdk" | ||