Move libzodium files to a dedicated directory

This commit is contained in:
Frank Denis 2025-01-15 23:42:24 +01:00
parent 1c44ef601e
commit c165362385
5 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ pub fn build(b: *std.Build) !void {
minisign.linkLibC(); minisign.linkLibC();
if (use_libzodium) { if (use_libzodium) {
const libzodium_mod = b.createModule(.{ const libzodium_mod = b.createModule(.{
.root_source_file = b.path("src/libzodium.zig"), .root_source_file = b.path("src/libzodium/libzodium.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });

View file

@ -15,7 +15,7 @@
#include <string.h> #include <string.h>
#ifdef LIBZODIUM #ifdef LIBZODIUM
# include "zodium.h" # include "libzodium/sodium.h"
#else #else
# include <sodium.h> # include <sodium.h>
#endif #endif

View file

@ -11,7 +11,7 @@
#include <unistd.h> #include <unistd.h>
#ifdef LIBZODIUM #ifdef LIBZODIUM
# include "zodium.h" # include "libzodium/sodium.h"
#else #else
# include <sodium.h> # include <sodium.h>
#endif #endif