mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-05 03:47:45 +03:00
Udpate for Zig 0.13
This commit is contained in:
parent
996ea4fee3
commit
45478e1dd6
1 changed files with 5 additions and 5 deletions
10
build.zig
10
build.zig
|
@ -11,13 +11,13 @@ pub fn build(b: *std.Build) !void {
|
||||||
.strip = true,
|
.strip = true,
|
||||||
});
|
});
|
||||||
minisign.linkLibC();
|
minisign.linkLibC();
|
||||||
minisign.addLibraryPath(.{ .path = "/opt/homebrew/lib" });
|
minisign.addLibraryPath(.{ .cwd_relative = "/opt/homebrew/lib" });
|
||||||
minisign.addLibraryPath(.{ .path = "/usr/local/lib" });
|
minisign.addLibraryPath(.{ .cwd_relative = "/usr/local/lib" });
|
||||||
minisign.linkSystemLibrary("sodium");
|
minisign.linkSystemLibrary("sodium");
|
||||||
|
|
||||||
minisign.addIncludePath(.{ .path = "src" });
|
minisign.addIncludePath(b.path("src"));
|
||||||
minisign.addSystemIncludePath(.{ .path = "/opt/homebrew/include" });
|
minisign.addSystemIncludePath(.{ .cwd_relative = "/opt/homebrew/include" });
|
||||||
minisign.addSystemIncludePath(.{ .path = "/usr/local/include" });
|
minisign.addSystemIncludePath(.{ .cwd_relative = "/usr/local/include" });
|
||||||
minisign.defineCMacro("_GNU_SOURCE", "1");
|
minisign.defineCMacro("_GNU_SOURCE", "1");
|
||||||
const source_files = &.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" };
|
const source_files = &.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" };
|
||||||
minisign.addCSourceFiles(.{ .files = source_files });
|
minisign.addCSourceFiles(.{ .files = source_files });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue