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." |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame^] | 5 | HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 6 | SECTION = "graphics" |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 9 | |
| 10 | SRCREV = "b27b1afd12d05bf238ac7368bb49de73cd620a8e" |
| 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git" |
| 12 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 15 | inherit cmake |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 16 | |
| 17 | DEPENDS = "spirv-headers" |
| 18 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 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 | " |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 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 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 32 | # all the libraries are unversioned, so don't pack it on PN-dev |
| 33 | SOLIBS = ".so" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 34 | FILES_SOLIBSDEV = "" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 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" |