26 lines
666 B
Python
26 lines
666 B
Python
from lib.make import *
|
|
from lib import cpp, arch
|
|
|
|
|
|
version("23.1.0")
|
|
description("A tool and a library for bi-directional translation between SPIR-V and LLVM IR")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v23.1.0.tar.gz")
|
|
|
|
builddep("shortcut/cmake")
|
|
builddep("shortcut/c++")
|
|
builddep(f"libllvm-dev @{arch.get_target()}")
|
|
builddep("pkgconf")
|
|
builddep("spirv-headers")
|
|
|
|
|
|
def build():
|
|
cpp.cmake([
|
|
"-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=ON",
|
|
f"-DSPIRV-Headers_SOURCE_DIR=/lib/{arch.get_target()}",
|
|
])
|
|
cpp.ninja()
|
|
cpp.ninja_install()
|
|
|
|
on_build(build)
|