Make libsodium optional

This commit is contained in:
Frank Denis 2025-01-15 22:11:52 +01:00
parent e640be4b8f
commit e43b9ff13b
5 changed files with 184 additions and 30 deletions

View file

@ -20,17 +20,24 @@ Compilation / installation
Dependencies:
* [libsodium](https://libsodium.org/)
* [libsodium](https://libsodium.org/) (*optional*)
* [zig](https://ziglang.org)
Compilation:
Compilation with libsodium:
$ zig build -Drelease
Compilation without libsodium:
$ zig build -Drelease -Dwithout_libsodium
The resulting binary can be found in `zig-out/bin/minisign`.
## Using cmake and gcc or clang:
* [libsodium](https://libsodium.org/)
Dependencies:
* [libsodium](https://libsodium.org/) (*required*)
* cmake
* pkg-config
* gcc or clang