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 <stephen@hexops.com>
  • Loading branch information
slimsag committed Jun 2, 2024
1 parent fb973eb commit b557da4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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/
10 changes: 5 additions & 5 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn build(b: *std.Build) void {

const config_header = b.addConfigHeader(
.{
.style = .{ .cmake = .{ .path = "config.cmake.h.in" } },
.style = .{ .cmake = b.path("config.cmake.h.in") },
.include_path = "config.h",
},
.{
Expand Down Expand Up @@ -40,15 +40,15 @@ pub fn build(b: *std.Build) void {
lib.linkLibC();
lib.defineCMacro("HAVE_CONFIG_H", null);
lib.addConfigHeader(config_header);
lib.addIncludePath(.{ .path = "include" });
lib.addIncludePath(.{ .path = "src/libFLAC/include" });
lib.addIncludePath(b.path("include"));
lib.addIncludePath(b.path("src/libFLAC/include"));
lib.addCSourceFiles(.{ .files = sources, .flags = &.{} });
if (target.os.tag == .windows) {
lib.defineCMacro("FLAC__NO_DLL", null);
lib.addCSourceFiles(.{ .files = sources_windows, .flags = &.{} });
}
lib.installConfigHeader(config_header, .{});
lib.installHeadersDirectory("include", "");
lib.installConfigHeader(config_header);
lib.installHeadersDirectory(b.path("include"), "", .{});
b.installArtifact(lib);
}

Expand Down

0 comments on commit b557da4

Please sign in to comment.