Minilzo packaged for Zig
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
minilzo
How to use it
First, update your build.zig.zon:
zig fetch --save git+https://git.darstorm.tech/BelacDarkstorm/zig-minilzo.git
Next, add this snippet to your build.zig script:
const minilzo_dep = b.dependency("minilzo", .{
.target = target,
.optimize = optimize,
});
your_compilation.linkLibrary(minilzo_dep.artifact("minilzo"));
This will provide minilzo as a static library to your_compilation. To mirror how lzo is often packaged, header files are provided inside of lzo/ so to include the header file use @cInclude("lzo/minilzo.h").