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 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 10 | SRCREV = "eb0a36633d2acf4de82588504f951ad0f2cecacb" |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 12 | PE = "1" |
| 13 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | inherit cmake python3native |
| 17 | |
| 18 | DEPENDS = "spirv-headers" |
| 19 | |
| 20 | EXTRA_OECMAKE += "\ |
| 21 | -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \ |
| 22 | -DSPIRV_TOOLS_BUILD_STATIC=OFF \ |
| 23 | -DBUILD_SHARED_LIBS=ON \ |
| 24 | -DSPIRV_SKIP_TESTS=ON \ |
| 25 | " |
| 26 | |
| 27 | do_install:append:class-target() { |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 28 | # Properly set _IMPORT_PREFIX in INTERFACE_LINK_LIBRARIES so that dependent |
| 29 | # tools can find the right library |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 30 | sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \ |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 31 | -e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}/lib":' |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | # all the libraries are unversioned, so don't pack it on PN-dev |
| 35 | SOLIBS = ".so" |
| 36 | FILES_SOLIBSDEV = "" |
| 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" |