const std = @import("std"); pub fn build(b: *std.Build) void { const optmization = b.standardOptimizeOption(.{}); const target = b.standardTargetOptions(.{}); const lib = b.addStaticLibrary(.{ .name = "pathfinder", .root_source_file = .{ .path = "src/pathfinder.zig" }, .optimize = optmization, .target = target, }); b.installArtifact(lib); const main_tests = b.addTest(.{ .name = "test", .root_source_file = .{ .path = "src/pathfinder.zig" }, .optimize = optmization, .target = target, }); const test_cmd = b.addRunArtifact(main_tests); const test_step = b.step("test", "Run tests"); test_step.dependOn(&test_cmd.step); const benchmark = b.addTest(.{ .name = "benchmark", .root_source_file = .{ .path = "src/benchmark.zig" }, .optimize = optmization, }); const bench_cmd = b.addRunArtifact(benchmark); const bench_step = b.step("bench", "Run benchmarks"); bench_step.dependOn(&bench_cmd.step); }