Files
chromebrew/packages/spirv_llvm_translator.rb

27 lines
971 B
Ruby

require 'buildsystems/cmake'
class Spirv_llvm_translator < CMake
description 'Tool and a library for bi-directional translation between SPIR-V and LLVM IR'
homepage 'https://github.com/KhronosGroup/SPIRV-LLVM-Translator'
version '20.1.0'
license 'Apache-2.0 WITH LLVM-exception'
compatibility 'all'
source_url 'https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git'
git_hashtag "v#{version.split('-').first}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'd11a3b41e69adce91f3c4a6dad913c770374b96cd152f44d03aad422deec51b5',
armv7l: 'd11a3b41e69adce91f3c4a6dad913c770374b96cd152f44d03aad422deec51b5',
i686: '2353d537164944266a4d4358bffc033e13035e6ac1c28b3f20eecbc5347ba44a',
x86_64: 'a4f1c647fb682d059a98af69ff46d46b2f503b352f24e59bb3dc252b8ae8e7bc'
})
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'llvm20_dev' => :build
depends_on 'llvm20_lib' # R
cmake_options '-DBUILD_SHARED_LIBS=ON'
end