blob: 8be698533afd95493a9010ada76db6f936acb403 [file] [log] [blame]
Andrew Geisslerd1e89492021-02-12 15:35:20 -06001SUMMARY = "The SPIR-V Tools project provides an API and commands for \
2processing SPIR-V modules"
3DESCRIPTION = "The project includes an assembler, binary module parser, \
4disassembler, validator, and optimizer for SPIR-V."
Andrew Geissler90fd73c2021-03-05 15:25:55 -06005HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools"
Andrew Geisslerd1e89492021-02-12 15:35:20 -06006SECTION = "graphics"
7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
9
Andrew Geissler95ac1b82021-03-31 14:34:31 -050010SRCREV = "2573fd781b5408cd7fe5755a78b60d767a748ff9"
11SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git \
12 file://0001-fix-strncpy-bound-error.patch \
13 "
Andrew Geisslerd1e89492021-02-12 15:35:20 -060014UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
15S = "${WORKDIR}/git"
16
Andrew Geissler95ac1b82021-03-31 14:34:31 -050017inherit cmake python3native
Andrew Geisslerd1e89492021-02-12 15:35:20 -060018
19DEPENDS = "spirv-headers"
20
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060021EXTRA_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 Geisslerd1e89492021-02-12 15:35:20 -060027
28do_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 Geissler9b4d8b02021-02-19 12:26:16 -060034# all the libraries are unversioned, so don't pack it on PN-dev
35SOLIBS = ".so"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060036FILES_SOLIBSDEV = ""
Andrew Geisslerd1e89492021-02-12 15:35:20 -060037
38PACKAGES =+ "${PN}-lesspipe"
39FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
40RDEPENDS_${PN}-lesspipe += "${PN} bash"
41
42BBCLASSEXTEND = "native nativesdk"