use Zig build system

This commit is contained in:
LordMZTE 2023-04-03 17:22:46 +02:00
parent 63af1cf1ee
commit e44309e935
No known key found for this signature in database
GPG key ID: B64802DC33A64FF6
33 changed files with 22 additions and 116558 deletions

19
build.zig Normal file
View file

@ -0,0 +1,19 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const lib = b.addStaticLibrary(.{
.name = "vulkan-headers",
.root_source_file = .{ .path = "stub.c" },
.target = target,
.optimize = optimize,
});
inline for (.{ "vk_video", "vulkan" }) |subdir| {
lib.installHeadersDirectory("include/" ++ subdir, subdir);
}
lib.install();
}