This is libchdr, packaged for Zig.
First, update your build.zig.zon
:
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/libchdr.git
You can then import libchdr
in your build.zig
with:
const bzip_dependency = b.dependency("libchdr", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("chdr"));