Some checks failed
CI / x86_64-linux (push) Has been cancelled
- Added manifest.scm
23 lines
656 B
Zig
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);
|
|
}
|