8000 GitHub - jdmichaud/libpng: lipng ported to the zig build system
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jdmichaud/libpng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libpng

This is libpng, packaged for Zig.

This repository is in not way affiliated with the libpng project.

How to use it

First, update your build.zig.zon:

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

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

const libpng_dep = b.dependency("libpng", .{
    .target = target,
    .optimize = optimize,
});
your_compilation.linkLibrary(libpng_dep.artifact("png16"));

This will provide libpng as a static library to your_compilation.

About

lipng ported to the zig build system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0