yaes/build.zig
torque eace0bf8db
init
the readme is a ramble and there's no functionality (yet). couldn't ask
for a better start.
2024-06-28 22:05:14 -07:00

28 lines
710 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const use_udev = b.option(
bool,
"use_udev",
"link and use udev (Linux only. Default: false)",
) orelse false;
const exe = b.addExecutable(.{
.name = "yaes",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
const ljacklm_dep = b.dependency(
"ljacklm",
.{ .target = target, .optimize = optimize, .use_udev = use_udev },
);
exe.linkLibrary(ljacklm_dep.artifact("ljacklm"));
b.installArtifact(exe);
}