Thanks to visit codestin.com
Credit goes to github.com

Skip to content

zivoy/sxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sxml-zig

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.

Options

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

Usage

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

About

A thin wrapper and build system for sxml

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages