Skip to content

Commit

Permalink
update to Zig 2024.05
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Jun 2, 2024
1 parent c7c5dbb commit 1c3b9b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
zig-cache/
.zig-cache/
zig-out/
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ pub fn build(b: *std.Build) void {
lib.linkLibC();
lib.linkLibrary(opus_dep.artifact("opus"));
lib.linkLibrary(ogg_dep.artifact("ogg"));
lib.addIncludePath(.{ .path = "include" });
lib.addIncludePath(b.path("include"));
lib.addCSourceFiles(.{ .files = &sources, .flags = &.{} });
lib.installHeadersDirectory("include", "");
lib.installHeadersDirectory(b.path("include"), "", .{});
lib.installLibraryHeaders(opus_dep.artifact("opus"));
lib.installLibraryHeaders(ogg_dep.artifact("ogg"));
b.installArtifact(lib);
Expand Down
8 changes: 4 additions & 4 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
},
.dependencies = .{
.opus = .{
.url = "https://pkg.machengine.org/opus/a92588094c455521282ed0a2b25c897721855f9b.tar.gz",
.hash = "1220bdd0eb5c2877c5a068a42fed25d4c52b38f088efb9c7f30228cb6eabbb4ac90c",
.url = "https://pkg.machengine.org/opus/8665e1f41c0facca6305e6caab75646bf219617e.tar.gz",
.hash = "12201cbb303d9417dfa24a8a019d510f03dfc575ea70ceb6ab42a98aa96ee31ff341",
},
.ogg = .{
.url = "https://pkg.machengine.org/ogg/f138f7003b6752fed019b7a8a7b7cf923f072dd8.tar.gz",
.hash = "1220c5b989e47e07722570d71cc059bd672ea8b53a0d003c3fa0a6ac044c08d962a0",
.url = "https://pkg.machengine.org/ogg/30eb809beaf36a25c156334038a0a13a152e344e.tar.gz",
.hash = "1220eacee464baa636d82fd965f76ad63dab75b1b69e692270ae8e3615bebc012648",
},
},
}

0 comments on commit 1c3b9b0

Please sign in to comment.