19 lines
524 B
Zig
19 lines
524 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) !void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
_ = b.addModule("globlin", .{
|
|
.root_source_file = b.path("src/glob.zig"),
|
|
});
|
|
|
|
const test_exe = b.addTest(.{
|
|
.root_source_file = b.path("src/glob.zig"),
|
|
.target = target,
|
|
.optimize = optimize,
|
|
});
|
|
|
|
const test_step = b.step("test", "run tests");
|
|
test_step.dependOn(&b.addRunArtifact(test_exe).step);
|
|
}
|