pantry/projects/github.com/KhronosGroup/Vulkan-Headers/package.yml

36 lines
690 B
YAML
Raw Normal View History

2023-06-07 17:24:48 +03:00
distributable:
url: https://github.com/KhronosGroup/Vulkan-Headers/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: KhronosGroup/Vulkan-Headers/tags
build:
dependencies:
cmake.org: '*'
2024-06-28 18:28:56 +03:00
ninja-build.org: '*'
2023-06-07 17:24:48 +03:00
script: |
cmake -S . -B build/ $ARGS
cmake --install build
2023-06-07 17:24:48 +03:00
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
2024-06-28 18:28:56 +03:00
- -G Ninja
2023-06-07 17:24:48 +03:00
test:
2023-10-20 20:13:45 +03:00
dependencies:
llvm.org: <17
2023-06-07 17:24:48 +03:00
fixture: |
#include <stdio.h>
#include <vulkan/vulkan_core.h>
int main() {
printf("vulkan version %d", VK_VERSION_1_0);
return 0;
}
script: |
mv $FIXTURE test.cpp
2023-10-20 20:13:45 +03:00
clang++ test.cpp -o test
2023-06-07 17:24:48 +03:00
out=$(./test)
echo $out