blob: f1fe40096ec04054a803fd37929b8d29e9a7adcc [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
10SRCREV = "b27b1afd12d05bf238ac7368bb49de73cd620a8e"
11SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git"
12UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
13S = "${WORKDIR}/git"
14
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060015inherit cmake
Andrew Geisslerd1e89492021-02-12 15:35:20 -060016
17DEPENDS = "spirv-headers"
18
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060019EXTRA_OECMAKE += "\
20 -DSPIRV-Headers_SOURCE_DIR=${STAGING_EXECPREFIXDIR} \
21 -DSPIRV_TOOLS_BUILD_STATIC=OFF \
22 -DBUILD_SHARED_LIBS=ON \
23 -DSPIRV_SKIP_TESTS=ON \
24"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060025
26do_install_append_class-target() {
27 # reproducibility: remove build host path
28 sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \
29 -e 's:${STAGING_DIR_HOST}::g'
30}
31
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060032# all the libraries are unversioned, so don't pack it on PN-dev
33SOLIBS = ".so"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060034FILES_SOLIBSDEV = ""
Andrew Geisslerd1e89492021-02-12 15:35:20 -060035
36PACKAGES =+ "${PN}-lesspipe"
37FILES_${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
38RDEPENDS_${PN}-lesspipe += "${PN} bash"
39
40BBCLASSEXTEND = "native nativesdk"