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 | |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 10 | SRCREV = "e198c6a785d388db68eb9166b43ac5e5208fd5cc" |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git \ |
| 12 | file://0001-fix-strncpy-bound-error.patch \ |
| 13 | " |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 14 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" |
| 15 | S = "${WORKDIR}/git" |
| 16 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 17 | inherit cmake python3native |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 18 | |
| 19 | DEPENDS = "spirv-headers" |
| 20 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 21 | EXTRA_OECMAKE += "\ |
| 22 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ |
| 23 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ |
| 24 | -DBUILD_SHARED_LIBS=ON \ |
| 25 | -DSPIRV_SKIP_TESTS=ON \ |
| 26 | " |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 27 | |
| 28 | do_install_append_class-target() { |
| 29 | # reproducibility: remove build host path |
| 30 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ |
| 31 | -e 's:${STAGING_DIR_HOST}::g' |
| 32 | } |
| 33 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 34 | # all the libraries are unversioned, so don't pack it on PN-dev |
| 35 | SOLIBS = ".so" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 36 | FILES_SOLIBSDEV = "" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 37 | |
| 38 | PACKAGES =+ "${PN}-lesspipe" |
| 39 | FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" |
| 40 | RDEPENDS_${PN}-lesspipe += "${PN} bash" |
| 41 | |
| 42 | BBCLASSEXTEND = "native nativesdk" |