Orolia2s/json-c
json-c ported to the zig build system
build.zig
for json-cProvides a package to be used by the zig package manager for C programs.
Add the dependency in your build.zig.zon
by running the following command:
zig fetch --save git+https://github.com/Orolia2s/json-c#0.17
Then, in your build.zig
:
const jsonc = b.dependency("json-c", { .target = target, .optimize = optimize });
const libjsonc = jsonc.artifact("json-c");
// wherever needed:
exe.linkLibrary(libjsonc);