This repository just bundles Lz4 into a Git project. It provides a bang file to cross compile lz4 for Linux, MacOS and Windows.
- C 99.3%
- Lua 0.7%
|
|
||
|---|---|---|
| lz4-1.10.0 | remove unnecessary LZ4 files | |
| .gitignore | Release r1 | |
| build.lua | Zig 0.16.0 | |
| build.ninja | Zig 0.16.0 | |
| LICENSE | Release r1 | |
| README.md | migrate to Codeberg | |
Lz4 builder
This repository just bundles Lz4 into a Git project. It provides a bang file to cross compile lz4 for Linux, MacOS and Windows.
Usage
$ bang
This generates the Ninja file for your platform (the provided Ninja file was generated for Linux).
$ ninja help
Distribution of lzip binaries for Linux, MacOS and Windows.
This Ninja build file will compile and install lz4 for Linux, MacOS and Windows
Targets:
help show this help message
compile Build Lz4 binaries for the host only
all Build Lz4 archives for Linux, MacOS and Windows
install install Lz4 in PREFIX or ~/.local
clean clean generated files
Installation of Lz4
To install Lz4 in ~/.local/bin:
$ ninja install
Or in a custom directory (e.g. /path/bin):
$ PREFIX=/path/ ninja install
Cross compilation of Lz4
You'll need Zig.
$ ninja all
Archives for all supported platforms are created in .build.