1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Update for zig-current

This commit is contained in:
Frank Denis 2024-04-08 21:16:26 +02:00
parent b7b1d027cc
commit f8ca998c52

View File

@ -83,8 +83,8 @@ pub fn build(b: *std.Build) !void {
continue;
}
b.installArtifact(lib);
lib.installHeader(src_path ++ "/include/sodium.h", "sodium.h");
lib.installHeadersDirectory(src_path ++ "/include/sodium", "sodium");
lib.installHeader(.{ .path = src_path ++ "/include/sodium.h" }, "sodium.h");
lib.installHeadersDirectory(.{ .path = src_path ++ "/include/sodium" }, "sodium", .{});
lib.linkLibC();
lib.addIncludePath(.{ .path = "src/libsodium/include/sodium" });