buildroot/package/spirv-llvm-translator/spirv-llvm-translator.mk

23 lines
978 B
Makefile

################################################################################
#
# spirv-llvm-translator
#
################################################################################
# Generate version string using:
# git describe --tags --match 'v15*' --abbrev=40 origin/llvm_release_150
SPIRV_LLVM_TRANSLATOR_VERSION = v15.0.0-46-ge82ecc2bd7295604fcf1824e47c95fa6a09c6e63
SPIRV_LLVM_TRANSLATOR_SITE = $(call github,KhronosGroup,SPIRV-LLVM-Translator,$(SPIRV_LLVM_TRANSLATOR_VERSION))
SPIRV_LLVM_TRANSLATOR_LICENSE = NCSA
SPIRV_LLVM_TRANSLATOR_LICENSE_FILES = LICENSE.TXT
HOST_SPIRV_LLVM_TRANSLATOR_DEPENDENCIES = host-clang host-llvm host-spirv-headers
HOST_SPIRV_LLVM_TRANSLATOR_CONF_OPTS = \
-DLLVM_BUILD_TOOLS=ON \
-DLLVM_DIR=$(HOST_DIR)/lib/cmake/llvm \
-DLLVM_SPIRV_BUILD_EXTERNAL=YES \
-DLLVM_SPIRV_INCLUDE_TESTS=OFF \
-DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers" \
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=$(HOST_DIR)/include
$(eval $(host-cmake-package))