mirror of
https://github.com/allyourcodebase/libiconv.git
synced 2026-11-07 22:53:49 +03:00
No description
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| COPYING | ||
| README.md | ||
libiconv
This is GNU libiconv, 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/libiconv.git
You can then import libiconv in your build.zig with:
const libiconv_dependency = b.dependency("libiconv", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(libiconv_dependency.artifact("iconv"));
Be aware that iconv is already available on most targets when linking libc. A notable exception is Windows.