summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb')
-rw-r--r--meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb b/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb
new file mode 100644
index 0000000000..bc2bebcda8
--- /dev/null
+++ b/meta/recipes-graphics/spir/spirv-llvm-translator_20.1.2.bb
@@ -0,0 +1,36 @@
1HOMEPAGE = "https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
2SUMMARY = "LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and SPIR-V."
3
4LICENSE = "NCSA"
5LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
6
7# pattern: llvm_branch_200, currently there are no minor releases, so, no llvm_branch_201
8SPIRV_BRANCH = "llvm_release_${@oe.utils.trim_version('${PV}', 1).replace('.', '')}0"
9SRC_URI = " \
10 git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;name=spirv;branch=${SPIRV_BRANCH} \
11"
12
13SRCREV_spirv = "6dd8f2a1681a27f16c53d932d2765920f312aeb2"
14
15UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
16
17S = "${WORKDIR}/git"
18
19DEPENDS = "clang spirv-tools spirv-headers"
20
21inherit cmake pkgconfig python3native
22
23# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
24# for CMAKE_SHARED_LIBS=OFF see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1868
25EXTRA_OECMAKE = "\
26 -DBUILD_SHARED_LIBS=ON \
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
29 -DCMAKE_SKIP_RPATH=ON \
30 -DLLVM_EXTERNAL_LIT=lit \
31 -DLLVM_INCLUDE_TESTS=ON \
32 -Wno-dev \
33 -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${STAGING_INCDIR}/.. \
34"
35
36BBCLASSEXTEND = "native nativesdk"