blob: eb07833f2288a90423509b6e70a623a6b306cccb [file] [log] [blame]
Andrew Geissler6ce62a22020-11-30 19:58:47 -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."
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
7SECTION = "graphics"
8
9S = "${WORKDIR}/git"
10DEST_DIR = "${S}/external"
11SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;name=spirv-tools \
12 git://github.com/KhronosGroup/SPIRV-Headers.git;name=spirv-headers;destsuffix=${DEST_DIR}/spirv-headers \
13 git://github.com/google/effcee.git;name=effcee;destsuffix=${DEST_DIR}/effcee \
14 git://github.com/google/re2.git;name=re2;destsuffix=${DEST_DIR}/re2 \
15 git://github.com/google/googletest.git;name=googletest;destsuffix=${DEST_DIR}/googletest \
16 file://0001-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-file.patch;destsuffix=${DEST_DIR}/effcee \
17"
Andrew Geisslerc723b722021-01-08 16:14:09 -060018SRCREV_spirv-tools = "b27b1afd12d05bf238ac7368bb49de73cd620a8e"
19SRCREV_spirv-headers = "f027d53ded7e230e008d37c8b47ede7cd308e19d"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060020SRCREV_effcee = "cd25ec17e9382f99a895b9ef53ff3c277464d07d"
21SRCREV_re2 = "5bd613749fd530b576b890283bfb6bc6ea6246cb"
22SRCREV_googletest = "f2fb48c3b3d79a75a88a99fba6576b25d42ec528"
23
24inherit cmake python3native
25
26EXTRA_OECMAKE += "-DSPIRV_WERROR=OFF"
27
28do_install_append() {
29 install -d ${D}/${includedir}/spirv
30 install -m 0644 ${DEST_DIR}/spirv-headers/include/spirv/1.2/* ${D}${includedir}/spirv
31 install -d ${D}/${includedir}/spirv/unified1
32 install -m 0644 ${DEST_DIR}/spirv-headers/include/spirv/unified1/* ${D}${includedir}/spirv/unified1
33}
34
35FILES_SOLIBSDEV = ""
36FILES_${PN} += "${libdir}/*.so"
37
38BBCLASSEXTEND = "native nativesdk"