Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame^] | 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 | SECTION = "graphics" |
| 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 8 | |
| 9 | SRCREV = "b27b1afd12d05bf238ac7368bb49de73cd620a8e" |
| 10 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git" |
| 11 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
| 14 | inherit cmake python3native |
| 15 | |
| 16 | DEPENDS = "spirv-headers" |
| 17 | |
| 18 | EXTRA_OECMAKE += "-DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR}" |
| 19 | |
| 20 | do_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 | |
| 26 | FILES_SOLIBSDEV = "" |
| 27 | FILES_${PN} += "${libdir}/*.so" |
| 28 | |
| 29 | PACKAGES =+ "${PN}-lesspipe" |
| 30 | FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" |
| 31 | RDEPENDS_${PN}-lesspipe += "${PN} bash" |
| 32 | |
| 33 | BBCLASSEXTEND = "native nativesdk" |