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); }