mirror of
https://github.com/allyourcodebase/win-iconv.git
synced 2026-11-17 01:30:35 +00:00
win-iconv ported to the zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
win-iconv
This is win-iconv, 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/win-iconv.git
You can then import win-iconv in your build.zig with:
const win_iconv_dependency = b.dependency("win_iconv", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(win_iconv_dependency.artifact("iconv"));