mirror of
https://github.com/allyourcodebase/bzip2.git
synced 2026-11-17 01:11:13 +00:00
bzip2 ported to the zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| LICENSE-BZIP2 | ||
| README.md | ||
bzip2
This is bzip2, 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/bzip2.git#1.0.8
You can then import bzip in your build.zig with:
const bzip_dependency = b.dependency("bzip", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("bz"));