blob: bde6ddd04b866598614b8ca15dba9a7e5d1da12f [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "The SPIR-V Tools project provides an API and commands for \
2processing SPIR-V modules"
3DESCRIPTION = "The project includes an assembler, binary module parser, \
4disassembler, validator, and optimizer for SPIR-V."
5HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools"
6SECTION = "graphics"
7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
9
Patrick Williams520786c2023-06-25 16:20:36 -050010SRCREV = "e7c6084fd1d6d6f5ac393e842728d8be309688ca"
Patrick Williams864cc432023-02-09 14:54:44 -060011SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=main;protocol=https"
Andrew Geissler517393d2023-01-13 08:55:19 -060012PE = "1"
Andrew Geissler028142b2023-05-05 11:29:21 -050013# 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.
Andrew Geissler517393d2023-01-13 08:55:19 -060017UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
18S = "${WORKDIR}/git"
19
Andrew Geissler028142b2023-05-05 11:29:21 -050020inherit cmake
Andrew Geissler517393d2023-01-13 08:55:19 -060021
22DEPENDS = "spirv-headers"
23
24EXTRA_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
31do_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 \
Patrick Williams520786c2023-06-25 16:20:36 -050035 -e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}/${baselib}":'
Andrew Geissler517393d2023-01-13 08:55:19 -060036}
37
38# all the libraries are unversioned, so don't pack it on PN-dev
39SOLIBS = ".so"
40FILES_SOLIBSDEV = ""
41
42PACKAGES =+ "${PN}-lesspipe"
43FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
44RDEPENDS:${PN}-lesspipe += "${PN} bash"
45
46BBCLASSEXTEND = "native nativesdk"