blob: f55bd5194a96f735c16ec4fa2853df8f6c975d00 [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 Geissler5f350902021-07-23 13:09:54 -040010SRCREV = "e198c6a785d388db68eb9166b43ac5e5208fd5cc"
Andrew Geissler95ac1b82021-03-31 14:34:31 -050011SRC_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
Patrick Williams213cb262021-08-07 19:21:33 -050028do_install:append:class-target() {
Andrew Geisslerd1e89492021-02-12 15:35:20 -060029 # 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"
Patrick Williams213cb262021-08-07 19:21:33 -050039FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
40RDEPENDS:${PN}-lesspipe += "${PN} bash"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060041
42BBCLASSEXTEND = "native nativesdk"