Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +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 | |
| 10 | SRCREV = "ab8eb607750208066e2d57eff6a34dbaf05f5ada" |
| 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https" |
| 12 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | inherit cmake python3native |
| 16 | |
| 17 | DEPENDS = "spirv-headers" |
| 18 | |
| 19 | EXTRA_OECMAKE += "\ |
| 20 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ |
| 21 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ |
| 22 | -DBUILD_SHARED_LIBS=ON \ |
| 23 | -DSPIRV_SKIP_TESTS=ON \ |
| 24 | " |
| 25 | |
| 26 | do_install:append:class-target() { |
| 27 | # reproducibility: remove build host path |
| 28 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ |
| 29 | -e 's:${STAGING_DIR_HOST}::g' |
| 30 | } |
| 31 | |
| 32 | # all the libraries are unversioned, so don't pack it on PN-dev |
| 33 | SOLIBS = ".so" |
| 34 | FILES_SOLIBSDEV = "" |
| 35 | |
| 36 | PACKAGES =+ "${PN}-lesspipe" |
| 37 | FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" |
| 38 | RDEPENDS:${PN}-lesspipe += "${PN} bash" |
| 39 | |
| 40 | BBCLASSEXTEND = "native nativesdk" |