DiplomaWork/dsvpn-master/build.zig

17 lines
480 B
Zig
Raw Permalink Normal View History

2022-05-13 18:52:39 +00:00
const std = @import("std");
const builtin = @import("builtin");
pub fn build(b: *std.build.Builder) !void {
var target = b.standardTargetOptions(.{});
const dsvpn = b.addExecutable("dsvpn", null);
dsvpn.setTarget(target);
dsvpn.setBuildMode(.ReleaseSmall);
dsvpn.install();
dsvpn.linkLibC();
dsvpn.addIncludeDir("include");
dsvpn.defineCMacro("_GNU_SOURCE", "1");
dsvpn.addCSourceFiles(&.{ "src/charm.c", "src/os.c", "src/vpn.c" }, &.{});
}