From a5244653efe3c7a8c6f62d0cbf939670c657d291 Mon Sep 17 00:00:00 2001 From: Kristian Larsson Date: Thu, 5 Sep 2024 22:56:50 +0200 Subject: [PATCH] Ship zconf.h 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. --- build.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 5aa6b9fbc..6023ce5cc 100644 --- a/build.zig +++ b/build.zig @@ -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", @@ -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); }