blob: dd9ca9383faf73271a28630ba9e2b157f2b79a6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "reactive-zig",
.root_module = b.createModule(.{
.root_source_file = b.path("src/refl.zig"),
.target = target,
.optimize = optimize,
}),
});
b.installArtifact(exe);
const exe_run = b.addRunArtifact(exe);
const exe_run_step = b.step("run", "Run");
exe_run_step.dependOn(&exe_run.step);
exe_run.step.dependOn(b.getInstallStep());
if (b.args) |args| exe_run.addArgs(args);
const exe_test = b.addTest(.{ .root_module = exe.root_module });
const exe_test_step = b.step("test", "Run tests");
exe_test_step.dependOn(&b.addRunArtifact(exe_test).step);
}
|