18 lines
539 B
Zig
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);
|
|
}
|