thomashn/libssh
libssh ported to the zig build system
refs
61e7df7e996ec5a5f13a653db3c419adb340d6ef
cad7ccba47e42fa608ca655ec14ae33202df86e1
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
.