Skip to content

Commit

Permalink
Merge pull request #22606 from isuruf/spirv-headers
Browse files Browse the repository at this point in the history
Add spirv-headers
  • Loading branch information
ocefpaf committed Apr 20, 2023
2 parents e5c7459 + d16383e commit 2ebd354
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/spirv-headers/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mkdir build
cd build
cmake -GNinja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
..

ninja -j%CPU_COUNT%
ninja install
7 changes: 7 additions & 0 deletions recipes/spirv-headers/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
mkdir build
cd build

cmake ${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release ..
make -j${CPU_COUNT}
make install
37 changes: 37 additions & 0 deletions recipes/spirv-headers/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "spirv-headers" %}
{% set version = "1.3.243.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
- url: https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-{{ version }}.tar.gz
sha256: 16927b1868e7891377d059cd549484e4158912439cf77451ae7e01e2a3bcd28b

build:
number: 0

requirements:
build:
- {{ compiler('cxx') }}
- cmake
- make # [unix]
- ninja # [win]
host:
run:

test:
commands:
- test -f ${PREFIX}/include/spirv/1.2/spirv.h # [unix]
- if not exist %LIBRARY_INC%\\spirv\\1.2\\spirv.h exit 1 # [win]

about:
home: https://github.com/KhronosGroup/SPIRV-Headers
license: BSD-3-Clause
license_file: LICENSE
summary: Machine-readable files for the SPIR-V Registry

extra:
recipe-maintainers:
- isuruf

0 comments on commit 2ebd354

Please sign in to comment.