blob: 4f45c68bbef9ca1e5c166678def26dcf1520f7a0 [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."
5SECTION = "graphics"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
8
9SRCREV = "b27b1afd12d05bf238ac7368bb49de73cd620a8e"
10SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git"
11UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
12S = "${WORKDIR}/git"
13
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060014inherit cmake
Andrew Geisslerd1e89492021-02-12 15:35:20 -060015
16DEPENDS = "spirv-headers"
17
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060018EXTRA_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 Geisslerd1e89492021-02-12 15:35:20 -060024
25do_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 Geissler9b4d8b02021-02-19 12:26:16 -060031# all the libraries are unversioned, so don't pack it on PN-dev
32SOLIBS = ".so"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060033FILES_SOLIBSDEV = ""
Andrew Geisslerd1e89492021-02-12 15:35:20 -060034
35PACKAGES =+ "${PN}-lesspipe"
36FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
37RDEPENDS_${PN}-lesspipe += "${PN} bash"
38
39BBCLASSEXTEND = "native nativesdk"