mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-04 11:27:42 +03:00
Move libzodium files to a dedicated directory
This commit is contained in:
parent
1c44ef601e
commit
c165362385
5 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue