27 lines
770 B
Zig
27 lines
770 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
const exe = b.addExecutable(.{
|
|
.name = "sed-lite",
|
|
.root_module = b.addModule("main", .{
|
|
.root_source_file = b.path("src/main.zig"),
|
|
.target = target,
|
|
.optimize = optimize,
|
|
}),
|
|
});
|
|
b.installArtifact(exe);
|
|
|
|
const tests = b.addTest(.{
|
|
.root_module = b.addModule("test", .{
|
|
.root_source_file = b.path("src/main.zig"),
|
|
.target = target,
|
|
.optimize = optimize,
|
|
}),
|
|
});
|
|
|
|
const test_step = b.step("test", "Run tests");
|
|
test_step.dependOn(&b.addRunArtifact(tests).step);
|
|
}
|