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); }