blob: b1899d3957e11c1cc536fcea394a22a040aba777 [file] [log] [blame]
Andrew Geisslerd1e89492021-02-12 15:35:20 -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."
5SECTION = "graphics"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
8
9SRCREV = "b27b1afd12d05bf238ac7368bb49de73cd620a8e"
10SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git"
11UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
12S = "${WORKDIR}/git"
13
14inherit cmake python3native
15
16DEPENDS = "spirv-headers"
17
18EXTRA_OECMAKE += "-DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR}"
19
20do_install_append_class-target() {
21 # reproducibility: remove build host path
22 sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \
23 -e 's:${STAGING_DIR_HOST}::g'
24}
25
26FILES_SOLIBSDEV = ""
27FILES_${PN} += "${libdir}/*.so"
28
29PACKAGES =+ "${PN}-lesspipe"
30FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
31RDEPENDS_${PN}-lesspipe += "${PN} bash"
32
33BBCLASSEXTEND = "native nativesdk"