blob: cfea28a6efee3c88526a5e4a61c741125732502a [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001SUMMARY = "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."
5HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-Tools"
6SECTION = "graphics"
7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
9
Patrick Williams2390b1b2022-11-03 13:47:49 -050010SRCREV = "5e61ea2098220059e89523f1f47b0bcd8c33b89a"
11SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https"
Andrew Geissler9aee5002022-03-30 16:27:02 +000012PE = "1"
13UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
14S = "${WORKDIR}/git"
15
16inherit cmake python3native
17
18DEPENDS = "spirv-headers"
19
20EXTRA_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
27do_install:append:class-target() {
28 # reproducibility: remove build host path
29 sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \
30 -e 's:${STAGING_DIR_HOST}::g'
31}
32
33# all the libraries are unversioned, so don't pack it on PN-dev
34SOLIBS = ".so"
35FILES_SOLIBSDEV = ""
36
37PACKAGES =+ "${PN}-lesspipe"
38FILES:${PN}-lesspipe = "${base_bindir}/spirv-lesspipe.sh"
39RDEPENDS:${PN}-lesspipe += "${PN} bash"
40
41BBCLASSEXTEND = "native nativesdk"