diff --git a/build.zig b/build.zig index 0951668..bc20591 100644 --- a/build.zig +++ b/build.zig @@ -16,7 +16,7 @@ pub fn build(b: *std.Build) !void { minisign.linkLibC(); if (use_libzodium) { const libzodium_mod = b.createModule(.{ - .root_source_file = b.path("src/libzodium.zig"), + .root_source_file = b.path("src/libzodium/libzodium.zig"), .target = target, .optimize = optimize, }); diff --git a/src/helpers.c b/src/helpers.c index d8a04c6..5a1b2fc 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -15,7 +15,7 @@ #include #ifdef LIBZODIUM -# include "zodium.h" +# include "libzodium/sodium.h" #else # include #endif diff --git a/src/libzodium.zig b/src/libzodium/libzodium.zig similarity index 100% rename from src/libzodium.zig rename to src/libzodium/libzodium.zig diff --git a/src/zodium.h b/src/libzodium/sodium.h similarity index 100% rename from src/zodium.h rename to src/libzodium/sodium.h diff --git a/src/minisign.c b/src/minisign.c index f0e3a0c..0444716 100644 --- a/src/minisign.c +++ b/src/minisign.c @@ -11,7 +11,7 @@ #include #ifdef LIBZODIUM -# include "zodium.h" +# include "libzodium/sodium.h" #else # include #endif