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 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 14 | inherit cmake |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 15 | |
| 16 | DEPENDS = "spirv-headers" |
| 17 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 18 | EXTRA_OECMAKE += "\ |
| 19 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ |
| 20 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ |
| 21 | -DBUILD_SHARED_LIBS=ON \ |
| 22 | -DSPIRV_SKIP_TESTS=ON \ |
| 23 | " |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 24 | |
| 25 | do_install_append_class-target() { |
| 26 | # reproducibility: remove build host path |
| 27 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ |
| 28 | -e 's:${STAGING_DIR_HOST}::g' |
| 29 | } |
| 30 | |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 31 | # all the libraries are unversioned, so don't pack it on PN-dev |
| 32 | SOLIBS = ".so" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 33 | FILES_SOLIBSDEV = "" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 34 | |
| 35 | PACKAGES =+ "${PN}-lesspipe" |
| 36 | FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh" |
| 37 | RDEPENDS_${PN}-lesspipe += "${PN} bash" |
| 38 | |
| 39 | BBCLASSEXTEND = "native nativesdk" |