Merge pull request #80 from antlilja/addModule

Use new module API
This commit is contained in:
Robin Voetter
2023-03-06 23:17:04 +01:00
committed by GitHub

View File

@@ -27,8 +27,7 @@ pub fn build(b: *std.Build) void {
if (!std.fs.path.isAbsolute(path)) @panic("Make sure to assign an absolute path to the `registry` option (see: std.Build.pathFromRoot).\n"); if (!std.fs.path.isAbsolute(path)) @panic("Make sure to assign an absolute path to the `registry` option (see: std.Build.pathFromRoot).\n");
generate_cmd.addArg(path); generate_cmd.addArg(path);
b.addModule(.{ _ = b.addModule("vulkan-zig", .{
.name = "vulkan-zig",
.source_file = generate_cmd.addOutputFileArg("vk.zig"), .source_file = generate_cmd.addOutputFileArg("vk.zig"),
}); });
} }