libchdr ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej 'vesim' Kuliński 9cfdaf615a Initial commit
2025-07-17 09:17:14 +02:00
.github/workflows Initial commit 2025-07-17 09:17:14 +02:00
.gitattributes Initial commit 2025-07-17 09:17:14 +02:00
build.zig Initial commit 2025-07-17 09:17:14 +02:00
build.zig.zon Initial commit 2025-07-17 09:17:14 +02:00
LICENSE Initial commit 2025-07-17 09:17:14 +02:00
LICENSE-LIBCHDR Initial commit 2025-07-17 09:17:14 +02:00
README.md Initial commit 2025-07-17 09:17:14 +02:00

CI

libchdr

This is libchdr, packaged for Zig.

Installation

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"));