zivoy/sxml
A thin wrapper and build system for sxml
91176b4c62ef7c6342804e02fc440b2e82326469
This is sxml 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("sxml", .{ 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/sxml
Then if using if with a Zig project you can use
const sxml = b.dependency("sxml", .{ });
mod.addImport("xml", sxml.module("sxml"));
Or if you are need to just link the original project you can use
const sxml = b.dependency("sxml", .{ .dynamic=false });
mod.linkLibrary(sxml.artifact("sxml"));
Contributions welcome, open PR