Finished (?) extraction

Fixed missing zlib_compat (updated library)
This commit is contained in:
Caleb J. Gardner
2026-06-02 18:31:00 -05:00
parent 01d87f6948
commit c51cc34f17
8 changed files with 70 additions and 36 deletions
+3 -6
View File
@@ -57,7 +57,7 @@ pub fn build(b: *std.Build) !void {
b.installArtifact(lib);
const exe_config = b.addOptions();
exe_config.addOption(std.SemanticVersion,"version", version);
exe_config.addOption(std.SemanticVersion, "version", version);
const exe = b.addExecutable(.{
.name = "unsquashfs",
@@ -68,10 +68,7 @@ pub fn build(b: *std.Build) !void {
.target = target,
.root_source_file = b.path("src/bin/unsquashfs.zig"),
.valgrind = debug,
.imports = &.{
.{ .name = "config", .module = exe_config.createModule() },
.{ .name = "squashfs", .module = lib.root_module }
},
.imports = &.{ .{ .name = "config", .module = exe_config.createModule() }, .{ .name = "squashfs", .module = lib.root_module } },
}),
});
@@ -104,7 +101,7 @@ fn getDependencies(b: *Build, optimize: std.builtin.OptimizeMode, target: Build.
var list: std.ArrayList(*Build.Step.Compile) = .empty;
const zlib_ng = b.dependency("zlib_ng", .{ .optimize = optimize, .target = target });
const zlib_ng = b.dependency("zlib_ng", .{ .optimize = optimize, .target = target, .zlib_compat = true });
try list.append(alloc, zlib_ng.artifact("zng"));
const xz = b.dependency("xz", .{ .optimize = optimize, .target = target });