Finished (?) extraction
Fixed missing zlib_compat (updated library)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user