mirror of
https://github.com/allyourcodebase/libarchive.git
synced 2026-11-17 01:11:05 +00:00
libarchive ported to the zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* fix build on Windows * fix build on linux * bump upstream libarchive to 3.8.9 * github actions: bump Zig version * ci: bump mlugg/setup-zig to v2 |
||
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
libarchive
This is libarchive, 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/libarchive.git#3.8.1
You can then import libarchive in your build.zig with:
const bzip_dependency = b.dependency("libarchive", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("archive"));
Note
Cross compiling to MacOS requires CoreServices.