Skip to content

zivoy/xml.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml.zig

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.

Options

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

Usage

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

About

A thin wrapper and build system for xml.c

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages