thomashn/libssh
libssh ported to the zig build system
7d862fe61ff2eac37ee54e1e017fc287bed1cd7a
refs
f348124c5382bcc377f1b3277357cbf2ed2fb8db
This is libssh, packaged for Zig.
First, update your build.zig.zon
:
zig fetch --save git+https://github.com/thomashn/libssh#<commit>
Next, add this snippet to your build.zig
script:
const libssh_dep = b.dependency("libssh", .{
.target = target,
.optimize = optimize,
});
your_compilation.linkLibrary(libssh_dep.artifact("libssh"));
This will provide libssh as a static library to your_compilation
.