mirror of
https://github.com/allyourcodebase/harfbuzz.git
synced 2026-11-03 22:55:58 +00:00
harfbuzz 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 | ||
harfbuzz
This is harfbuzz 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/harfbuzz.git
You can then import harfbuzz in your build.zig with:
const harfbuzz_dependency = b.dependency("harfbuzz", .{
.target = target,
.optimize = optimize,
});
your_exe.root_module.linkLibrary(harfbuzz_dependency.artifact("harfbuzz"));