This is xml.c packaged using the Zig build system.
A thin zig wrapper is also included.
This project requires Zig version 0.15.1
or higher.
You can set these options when importing as a dependency with b.dependency("xmlc", .{ option=value })
or when building directly with zig build -Doption=value
.
Option Name | Default | Description |
---|---|---|
dynamic | false | Build the library as a shared (dynamic) library |
pie | false | Enable position indepentent code |
strip | false | Strip out debug data |
Add to build.zig.zon by running
zig fetch --save git+https://github.com/zivoy/xml.zig
Then if using if with a Zig project you can use
const xmlc = b.dependency("xmlc", .{ });
mod.addImport("xml", xmlc.module("xml"));
Or if you are need to just link the original project you can use
const xmlc = b.dependency("xmlc", .{ .dynamic=false });
mod.linkLibrary(xmlc.artifact("xml"));
Contributions welcome, open PR