Skip to content

Commit

Permalink
Ship zconf.h
Browse files Browse the repository at this point in the history
Include the generated zconf.h so that downstream users will get this
lib (which I think they need!?).

Sort source files according to CMake, so it's easier to compare.
  • Loading branch information
plajjan committed Sep 5, 2024
1 parent aebb6cf commit a524465
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ pub fn build(b: *std.Build) void {
"gzlib.c",
"gzread.c",
"gzwrite.c",
"infback.c",
"inffast.c",
"inflate.c",
"infback.c",
"inftrees.c",
"inffast.c",
"trees.c",
"uncompr.c",
"zutil.c",
Expand All @@ -63,6 +63,7 @@ pub fn build(b: *std.Build) void {

lib.linkLibC();
lib.installHeader(b.path("zlib.h"), "zlib.h");
lib.installHeader(config_header.getOutput(), "zconf.h");

b.installArtifact(lib);
}

0 comments on commit a524465

Please sign in to comment.