Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianprime0509/zig-libxml2
libxml2 and libxslt build system using Zig (WIP)
https://github.com/ianprime0509/zig-libxml2
Last synced: about 2 months ago
JSON representation
libxml2 and libxslt build system using Zig (WIP)
- Host: GitHub
- URL: https://github.com/ianprime0509/zig-libxml2
- Owner: ianprime0509
- License: 0bsd
- Created: 2024-03-31T04:01:34.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T02:24:30.000Z (5 months ago)
- Last Synced: 2024-07-23T05:09:24.407Z (5 months ago)
- Language: Zig
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-libxml2
This project is a wrapper around
[libxml2](https://gitlab.gnome.org/GNOME/libxml2) and
[libxslt](https://gitlab.gnome.org/GNOME/libxslt) to build them using the Zig
build system. It supports Zig 0.12.0, 0.13.0, and the latest master (at the time
of writing).By default, only libxml2 is fetched and built. To include libxslt as well, pass
the `xslt` option (via `.xslt = true` in `build.zig` or `-Dxslt` in the build
command). Several other options are available to customize the build, which can
be found through `zig build --help` (note that since XSLT support is dependent
on `-Dxslt`, `zig build -Dxslt --help` must be used to view XSLT-specific
options).The executable programs `xmllint`, `xmlcatalog`, and `xsltproc` (only with
`xslt` enabled) are also built alongside the libraries.Thanks to the existing projects
[mitchellh/zig-libxml2](https://github.com/mitchellh/zig-libxml2) and
[mitchellh/zig-build-libxml2](https://github.com/mitchellh/zig-build-libxml2/)
for providing inspiration for this project. This project is not directly built
on either of them, as I wanted to take another direction with this wrapper (and
also bring in libxslt).## License
This repository (the Zig build configuration) is released under
[0BSD](https://spdx.org/licenses/0BSD.html). libxml, libxslt, and libexslt
themselves are all under the MIT license(s) in their respective upstreams.