Skip to content

Commit

Permalink
update to latest Zig
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Oct 18, 2023
1 parent 7858907 commit 234b8f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn build(b: *std.Build) void {
lib.linkLibrary(opus_dep.artifact("opus"));
lib.linkLibrary(ogg_dep.artifact("ogg"));
lib.addIncludePath(.{ .path = "include" });
lib.addCSourceFiles(&sources, &.{});
lib.addCSourceFiles(.{ .files = &sources, .flags = &.{} });
lib.installHeadersDirectory("include", "");
lib.installLibraryHeaders(opus_dep.artifact("opus"));
lib.installLibraryHeaders(ogg_dep.artifact("ogg"));
Expand Down
18 changes: 14 additions & 4 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
.{
.name = "opusfile",
.version = "0.0.0",
.paths = .{
"include",
"src",
"build.zig",
"build.zig.zon",
"COPYING",
"README.md",
"update.sh",
"verify.sh",
},
.dependencies = .{
.opus = .{
.url = "https://pkg.machengine.org/opus/51453c252b7f021b81697868d3c662c5925809d2.tar.gz",
.hash = "1220c32603d5221fc1680c7c025811c6cc5de46fb38395a00a0836daad3d01f1835b",
.url = "https://pkg.machengine.org/opus/7eddaec093d7056ce96ffc9712db8abd76bb262b.tar.gz",
.hash = "12204ccca518df3c7e19a5b739aca7d77f0be92f068f7c81316f2d4b7db085945ae9",
},
.ogg = .{
.url = "https://pkg.machengine.org/ogg/370d8c6425fbc25aea6b09761358e47fc325f88d.tar.gz",
.hash = "1220ab5e1dc843f13794de71eff73fbdb656f5ec150a92daafadc4bcdebb4d03c2f2",
.url = "https://pkg.machengine.org/ogg/a55253b4cd811288d378f5d99df9a92cf6eac0f7.tar.gz",
.hash = "1220c5b989e47e07722570d71cc059bd672ea8b53a0d003c3fa0a6ac044c08d962a0",
},
},
}

0 comments on commit 234b8f3

Please sign in to comment.