vulkan-headers 1.1.99 (new formula)
Closes #36781. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
4607a972c6
commit
6a870a7884
1 changed files with 27 additions and 0 deletions
27
Formula/vulkan-headers.rb
Normal file
27
Formula/vulkan-headers.rb
Normal file
|
@ -0,0 +1,27 @@
|
|||
class VulkanHeaders < Formula
|
||||
desc "Vulkan Header files and API registry"
|
||||
homepage "https://github.com/KhronosGroup/Vulkan-Headers"
|
||||
url "https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.1.99.tar.gz"
|
||||
sha256 "37506deaf56b254193e4fa83195add2617e881efcac3d2ff5f0cf49353eb9aa8"
|
||||
|
||||
depends_on "cmake" => :build
|
||||
|
||||
def install
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<~EOS
|
||||
#include <stdio.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
int main() {
|
||||
printf("vulkan version %d", VK_VERSION_1_0);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.c", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue