Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [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 | HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools" |
| 6 | SECTION = "graphics" |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 9 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 10 | SRCREV = "c94501352d545e84c821ce031399e76d1af32d18" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https \ |
| 12 | file://0001-Remove-default-copy-constructor-in-header.-4879.patch \ |
| 13 | " |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 14 | PE = "1" |
| 15 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | inherit cmake python3native |
| 19 | |
| 20 | DEPENDS = "spirv-headers" |
| 21 | |
| 22 | EXTRA_OECMAKE += "\ |
| 23 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ |
| 24 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ |
| 25 | -DBUILD_SHARED_LIBS=ON \ |
| 26 | -DSPIRV_SKIP_TESTS=ON \ |
| 27 | " |
| 28 | |
| 29 | do_install:append:class-target() { |
| 30 | # reproducibility: remove build host path |
| 31 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ |
| 32 | -e 's:${STAGING_DIR_HOST}::g' |
| 33 | } |
| 34 | |
| 35 | # all the libraries are unversioned, so don't pack it on PN-dev |
| 36 | SOLIBS = ".so" |
| 37 | FILES_SOLIBSDEV = "" |
| 38 | |
| 39 | PACKAGES =+ "${PN}-lesspipe" |
| 40 | FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" |
| 41 | RDEPENDS:${PN}-lesspipe += "${PN} bash" |
| 42 | |
| 43 | BBCLASSEXTEND = "native nativesdk" |