diff --git a/projects/khronos.org/glslang/package.yml b/projects/khronos.org/glslang/package.yml new file mode 100644 index 0000000000..e25ac3610b --- /dev/null +++ b/projects/khronos.org/glslang/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://github.com/KhronosGroup/glslang/archive/{{version}}.tar.gz + strip-components: 1 +versions: + github: KhronosGroup/glslang +build: + dependencies: + tea.xyz/gx/cc: c99 + gnu.org/make: '*' + cmake.org: '*' + python.org: ^3.11 + script: + - cmake -S . -B build $ARGS + - cmake --build build + - cmake --install build + env: + ARGS: + - -DBUILD_EXTERNAL=OFF + - -DENABLE_CTEST=OFF + - -DCMAKE_INSTALL_PREFIX={{prefix}} + - -DCMAKE_INSTALL_LIBDIR={{prefix}}/lib + - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_FIND_FRAMEWORK=LAST + - -DCMAKE_VERBOSE_MAKEFILE=ON + - -Wno-dev + - -DBUILD_TESTING=OFF +provides: + - bin/glslang + - bin/glslangValidator + - bin/spirv-remap +test: + script: + - glslang --version | grep {{version}} + - glslangValidator -i test.vert test.frag diff --git a/projects/khronos.org/glslang/test.frag b/projects/khronos.org/glslang/test.frag new file mode 100644 index 0000000000..7792ce3a96 --- /dev/null +++ b/projects/khronos.org/glslang/test.frag @@ -0,0 +1,4 @@ +#version 110 +void main() { + gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); +} \ No newline at end of file diff --git a/projects/khronos.org/glslang/test.vert b/projects/khronos.org/glslang/test.vert new file mode 100644 index 0000000000..466585d2d1 --- /dev/null +++ b/projects/khronos.org/glslang/test.vert @@ -0,0 +1,4 @@ +#version 110 +void main() { + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; +} \ No newline at end of file