-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.zig
More file actions
25 lines (19 loc) · 761 Bytes
/
Copy pathbuild.zig
File metadata and controls
25 lines (19 loc) · 761 Bytes
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
const std = @import("std");
const Build = std.Build;
pub fn build(b: *Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const unit_tests = b.addTest(.{
.name = "Unit Tests",
.root_source_file = .{ .src_path = .{ .sub_path = "src/fontana.zig", .owner = b } },
.target = target,
.optimize = optimize,
});
const run_test_cmd = b.addRunArtifact(unit_tests);
run_test_cmd.step.dependOn(b.getInstallStep());
_ = b.addModule("fontana", .{
.root_source_file = .{ .src_path = .{ .sub_path = "src/fontana.zig", .owner = b } },
});
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&run_test_cmd.step);
}