21 lines
607 B
Zig
21 lines
607 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
_ = b.addModule("migton", .{ .root_source_file = b.path("src/migton.zig") });
|
|
|
|
// main test
|
|
const main_test = b.addTest(.{
|
|
.root_source_file = b.path("src/main_test.zig"),
|
|
.target = target,
|
|
.optimize = optimize,
|
|
});
|
|
// run main test
|
|
const run_main_tests = b.addRunArtifact(main_test);
|
|
|
|
const test_step = b.step("test", "Run library Test.");
|
|
test_step.dependOn(&run_main_tests.step);
|
|
}
|