blob: 01e1a6e87aa42c1d70ab3b4bc4548bda5c25f7df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
const Build = @import("std").Build;
pub fn build(b: *Build) void {
const exe = b.addExecutable(.{
.name = "clipbuzz",
.root_source_file = .{ .path = "src/main.zig" },
.target = b.standardTargetOptions(.{}),
.optimize = b.standardOptimizeOption(.{}),
});
exe.linkLibC();
exe.linkSystemLibrary("X11");
exe.linkSystemLibrary("Xfixes");
b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args|
run_cmd.addArgs(args);
const run_step = b.step("run", "Run clipbuzz");
run_step.dependOn(&run_cmd.step);
}
|