build: update to zig 0.13.0

This commit is contained in:
Marcius 2024-06-20 21:38:49 +01:00
parent 2021f6a890
commit 2194b84b4a
3 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/zig-*
.zig-cache

View file

@ -16,7 +16,7 @@ pub fn build(b: *std.Build) !void {
}).module("zenolith");
const mod = b.addModule("zenolith-sdl2", .{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "src/main.zig" } },
.imports = &.{.{ .name = "zenolith", .module = zenolith_mod }},
.target = target,
.optimize = optimize,
@ -45,7 +45,7 @@ pub fn build(b: *std.Build) !void {
}
const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "src/main.zig" } },
.target = target,
.optimize = optimize,
});
@ -58,7 +58,7 @@ pub fn build(b: *std.Build) !void {
const example_exe = b.addExecutable(.{
.name = "zenolith-sdl2-example",
.root_source_file = .{ .path = "example/main.zig" },
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "example/main.zig" } },
.target = target,
.optimize = optimize,
});

View file

@ -14,12 +14,12 @@
},
.sdl2 = .{
.url = "git+https://git.mzte.de/mirrors/SDL.git#db4a162db2f6f59f737d03f441455dc9524d5793",
.hash = "1220c5360c9c71c215baa41b46ec18d0711059b48416a2b1cf96c7c2d87b2e8e4cf6",
.url = "git+https://git.mzte.de/mirrors/SDL.git#d3ce72923ada60041a6a4a92628408b0908ce4e0",
.hash = "1220c8b7fffe055e95a991cbaf5d86b4d5ea380294b0b4326b2ee46110613cf7972e",
},
.freetype = .{
.url = "git+https://git.mzte.de/mirrors/freetype.git#398638fd1cb723e478658ea371fe3be1a4dce0ae",
.hash = "12208c57b72e3fb5c8d5d3e667e2e21ca1d9e2b6fc3f84182b320f63933f591823da",
.url = "git+https://git.mzte.de/mirrors/freetype.git#e8c5b37f320db03acba410d993441815bc809606",
.hash = "1220babb7939707ca390b934657dfd3c8c3a6a78cc9442e4cbd43e3f9ffd49daec9e",
},
},
}