vulkan-headers/build.zig
Stephen Gutekanst 7dc2066cfe update to latest Zig API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-13 09:51:35 -07:00

18 lines
539 B
Zig

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 = b.addWriteFiles().add("empty.c", ""),
.target = target,
.optimize = optimize,
});
inline for (.{ "vk_video", "vulkan" }) |subdir| {
lib.installHeadersDirectory(b.path("include/" ++ subdir), subdir, .{});
}
b.installArtifact(lib);
}