18 lines
477 B
Zig
18 lines
477 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.build.Builder) void {
|
|
const mode = b.standardReleaseOptions();
|
|
|
|
const main_tests = b.addTest("src/main.zig");
|
|
main_tests.addPackage(pkg);
|
|
main_tests.setBuildMode(mode);
|
|
|
|
const test_step = b.step("test", "Run library tests");
|
|
test_step.dependOn(&main_tests.step);
|
|
}
|
|
|
|
pub const pkg = std.build.Pkg{
|
|
.name = "ecs",
|
|
.source = .{ .path = "src/main.zig" },
|
|
.dependencies = &[_]std.build.Pkg{},
|
|
};
|