semantic bufo search
find-bufo.com
bufo
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const target = b.standardTargetOptions(.{});
5 const optimize = b.standardOptimizeOption(.{});
6
7 const zat = b.dependency("zat", .{
8 .target = target,
9 .optimize = optimize,
10 });
11
12 const exe = b.addExecutable(.{
13 .name = "bufo-bot",
14 .root_module = b.createModule(.{
15 .root_source_file = b.path("src/main.zig"),
16 .target = target,
17 .optimize = optimize,
18 .imports = &.{
19 .{ .name = "zat", .module = zat.module("zat") },
20 },
21 }),
22 });
23
24 b.installArtifact(exe);
25
26 const run_cmd = b.addRunArtifact(exe);
27 run_cmd.step.dependOn(b.getInstallStep());
28 if (b.args) |args| {
29 run_cmd.addArgs(args);
30 }
31
32 const run_step = b.step("run", "Run the bot");
33 run_step.dependOn(&run_cmd.step);
34}