mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* spirv_tools => 2025.1 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to branch spirv. * Add built packages for linux/amd64 to branch spirv. * Add built packages for linux/arm/v7 to branch spirv. --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
require 'buildsystems/cmake'
|
|
|
|
class Spirv_tools < CMake
|
|
homepage 'https://github.com/KhronosGroup/SPIRV-Tools'
|
|
description 'API and commands for processing SPIR-V modules'
|
|
version '2025.1'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/KhronosGroup/SPIRV-Tools.git'
|
|
git_hashtag "v#{version.split('-').first}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'b426bafb81437dd7cda8e794bad0894fd01d98b705d424cf4b137b2815d152c6',
|
|
armv7l: 'b426bafb81437dd7cda8e794bad0894fd01d98b705d424cf4b137b2815d152c6',
|
|
i686: '5bf1a0d0254865711a1ac63e94e0eaeba59ddd901552edd61bf673ef6cb6b37e',
|
|
x86_64: '553bc251d8ef417ba87a6c9b67940113e2bbcade47d808a0c29f198c8d5ffef9'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
# depends_on 'spirv_headers' => :build
|
|
|
|
# https://github.com/KhronosGroup/SPIRV-Tools/issues/5728
|
|
def self.patch
|
|
system 'utils/git-sync-deps'
|
|
end
|
|
|
|
# https://github.com/KhronosGroup/SPIRV-Tools/issues/3909
|
|
cmake_options '-DSPIRV_TOOLS_BUILD_STATIC=OFF -DBUILD_SHARED_LIBS=ON'
|
|
run_tests
|
|
end
|