use Zig build system
This commit is contained in:
parent
63af1cf1ee
commit
e44309e935
33 changed files with 22 additions and 116558 deletions
19
build.zig
Normal file
19
build.zig
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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 = .{ .path = "stub.c" },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
inline for (.{ "vk_video", "vulkan" }) |subdir| {
|
||||
lib.installHeadersDirectory("include/" ++ subdir, subdir);
|
||||
}
|
||||
|
||||
lib.install();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue