From c16536238571f4678d812007bf11b7df087aaaf2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 15 Jan 2025 23:42:24 +0100 Subject: [PATCH] Move libzodium files to a dedicated directory --- build.zig | 2 +- src/helpers.c | 2 +- src/{ => libzodium}/libzodium.zig | 0 src/{zodium.h => libzodium/sodium.h} | 0 src/minisign.c | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => libzodium}/libzodium.zig (100%) rename src/{zodium.h => libzodium/sodium.h} (100%) 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