Skip to content

zlib ported to the zig build system

License

Notifications You must be signed in to change notification settings

zig-robotics/zlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zlib

This is zlib, packaged for Zig.

How to use it

First, update your build.zig.zon:

zig fetch --save https://github.com/allyourcodebase/zlib/archive/refs/tags/1.3.1.tar.gz

Next, add this snippet to your build.zig script:

const zlib_dep = b.dependency("zlib", .{
    .target = target,
    .optimize = optimize,
});
your_compilation.linkLibrary(libz_dep.artifact("z"));

This will provide zlib as a static library to your_compilation.

About

zlib ported to the zig build system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Zig 100.0%