vulkan-headers/build.zig
Aleksandr Lebedev 2935c84320
Some checks failed
CI / x86_64-linux (push) Has been cancelled
Updated to zig v0.15
- Added manifest.scm
2025-11-19 12:15:22 +01:00

23 lines
656 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const mod = b.addModule("vulkan-headers", .{
.target = target,
.optimize = optimize,
});
const lib = b.addLibrary(.{
.name = "vulkan-headers",
.linkage = .static,
.root_module = mod,
});
lib.addCSourceFile(.{ .file = b.addWriteFiles().add("empty.c", "") });
inline for (.{ "vk_video", "vulkan" }) |subdir| {
lib.installHeadersDirectory(b.path("include/" ++ subdir), subdir, .{});
}
b.installArtifact(lib);
}