14 lines
581 B
Zig
14 lines
581 B
Zig
const std = @import("std");
|
|
pub fn build(b: *std.Build) void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
const mod = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize });
|
|
mod.linkFramework("IOKit", .{});
|
|
mod.linkFramework("CoreFoundation", .{});
|
|
const exe = b.addExecutable(.{ .name = "kable", .root_module = mod });
|
|
b.installArtifact(exe);
|
|
const run = b.addRunArtifact(exe);
|
|
const step = b.step("run", "Run");
|
|
step.dependOn(&run.step);
|
|
}
|