lcp5y3/Unity-zig
Unity build with zig build system
Using zig build system to build Unity unit test library.
First update your build.zig.zon with:
zig fetch --save git+https://github.com/lcp5y3/Unity-zig.git#v2.6.0
After that you can link Unity
with your project by adding the following
lines to your build.zig
const unity_dep = b.dependency("unity_zig", .{
.target = target,
.optimize = optimize,
});
exe.linkLibrary(unity_dep.artifact("unity"));
If you only want to build Unity to get .a and header, run:
zig build
You will find the Statically lib libunity.a in zig-out folder.