Files
chromebrew/packages/glslang.rb
chromebrew-actions[bot] 2e79b88248 updater-glslang-16.0.0 — glslang → 16.0.0 (#13481)
* Add unbuilt glslang to updater-glslang-16.0.0

* updater-glslang-16.0.0: Package File Update Run on linux/amd64 container.

* updater-glslang-16.0.0: Package File Update Run on linux/arm/v7 container.

---------

Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-11-16 16:19:19 +00:00

31 lines
1.0 KiB
Ruby

# Adapted from Arch Linux glslang PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/glslang/trunk/PKGBUILD
require 'buildsystems/cmake'
class Glslang < CMake
description 'OpenGL and OpenGL ES shader front end and validator'
homepage 'https://github.com/KhronosGroup/glslang'
version '16.0.0'
license 'BSD-3, MIT, BSD-2, Apache-2.0 and NVIDIA'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://github.com/KhronosGroup/glslang.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: '6be6f812994b5eb0d0ce76a0e3ebadbc898e9ccacce17152d742f4612ce805a1',
armv7l: '6be6f812994b5eb0d0ce76a0e3ebadbc898e9ccacce17152d742f4612ce805a1',
x86_64: 'be82b975ae8bda8cba9fd9614aa3191241cf4601d0bd75e806137108ffa71e7c'
})
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'spirv_headers' => :build
depends_on 'spirv_tools' # R
cmake_options "-DBUILD_SHARED_LIBS=ON \
-DALLOW_EXTERNAL_SPIRV_TOOLS=ON \
-DCMAKE_INSTALL_LIBDIR=#{CREW_LIB_PREFIX}"
end