diff --git a/recipes/spirv-headers/bld.bat b/recipes/spirv-headers/bld.bat new file mode 100644 index 0000000000000..7cb5bb1977441 --- /dev/null +++ b/recipes/spirv-headers/bld.bat @@ -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 diff --git a/recipes/spirv-headers/build.sh b/recipes/spirv-headers/build.sh new file mode 100644 index 0000000000000..9b2223643b2cd --- /dev/null +++ b/recipes/spirv-headers/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash +mkdir build +cd build + +cmake ${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release .. +make -j${CPU_COUNT} +make install diff --git a/recipes/spirv-headers/meta.yaml b/recipes/spirv-headers/meta.yaml new file mode 100644 index 0000000000000..bfbe166f591cc --- /dev/null +++ b/recipes/spirv-headers/meta.yaml @@ -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