mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-03 19:07:41 +03:00
18 lines
630 B
Zig
18 lines
630 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.build.Builder) !void {
|
|
var target = b.standardTargetOptions(.{});
|
|
const mode = b.standardReleaseOptions();
|
|
|
|
const minisign = b.addExecutable("minisign", null);
|
|
minisign.setTarget(target);
|
|
minisign.setBuildMode(mode);
|
|
minisign.install();
|
|
minisign.linkLibC();
|
|
minisign.linkSystemLibrary("sodium");
|
|
|
|
minisign.addIncludeDir("src");
|
|
minisign.addSystemIncludeDir("/usr/local/include");
|
|
minisign.defineCMacro("_GNU_SOURCE", "1");
|
|
minisign.addCSourceFiles(&.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" }, &.{});
|
|
}
|