21 lines
620 B
Zig
21 lines
620 B
Zig
|
const std = @import("std");
|
||
|
|
||
|
pub fn build(b: *std.Build) void {
|
||
|
const target = b.standardTargetOptions(.{});
|
||
|
const optimize = b.standardOptimizeOption(.{});
|
||
|
_ = b.addModule("gap_buffer", .{
|
||
|
.target = target,
|
||
|
.optimize = optimize,
|
||
|
.root_source_file = b.path("src/root.zig"),
|
||
|
});
|
||
|
|
||
|
const tests = b.addTest(.{
|
||
|
.target = target,
|
||
|
.optimize = optimize,
|
||
|
.root_source_file = b.path("src/root.zig"),
|
||
|
});
|
||
|
const run_tests = b.addRunArtifact(tests);
|
||
|
const tests_step = b.step("test", "run gap buffer tests");
|
||
|
tests_step.dependOn(&run_tests.step);
|
||
|
}
|