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 7ce5986 commit 8665e1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
zig-out/
zig-cache/
.zig-cache/
16 changes: 8 additions & 8 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ pub fn build(b: *std.Build) void {
lib.defineCMacro("USE_ALLOCA", null);
lib.defineCMacro("OPUS_BUILD", null);
lib.defineCMacro("HAVE_CONFIG_H", null);
lib.addIncludePath(.{ .path = "." });
lib.addIncludePath(.{ .path = "include" });
lib.addIncludePath(.{ .path = "celt" });
lib.addIncludePath(.{ .path = "silk" });
lib.addIncludePath(.{ .path = "celt/arm" });
lib.addIncludePath(.{ .path = "silk/float" });
lib.addIncludePath(.{ .path = "silk/fixed" });
lib.addIncludePath(b.path("."));
lib.addIncludePath(b.path("include"));
lib.addIncludePath(b.path("celt"));
lib.addIncludePath(b.path("silk"));
lib.addIncludePath(b.path("celt/arm"));
lib.addIncludePath(b.path("silk/float"));
lib.addIncludePath(b.path("silk/fixed"));

lib.addCSourceFiles(.{ .files = sources ++ silk_sources_float, .flags = &.{} });
if (target.cpu.arch.isX86()) {
Expand Down Expand Up @@ -76,7 +76,7 @@ pub fn build(b: *std.Build) void {
if (neon) lib.addCSourceFiles(.{ .files = celt_sources_arm_neon ++ silk_sources_arm_neon, .flags = &.{} });
}

lib.installHeadersDirectory("include", "");
lib.installHeadersDirectory(b.path("include"), "", .{});
b.installArtifact(lib);
}

Expand Down

0 comments on commit 8665e1f

Please sign in to comment.