|
|
@ -30,7 +30,6 @@ pub fn build(b: *Builder) void {
|
|
|
|
const doc = b.step("docs", "Generate documentation");
|
|
|
|
const doc = b.step("docs", "Generate documentation");
|
|
|
|
doc.dependOn(&docs.step);
|
|
|
|
doc.dependOn(&docs.step);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const run_cmd = exe.run();
|
|
|
|
const run_cmd = exe.run();
|
|
|
|
const exe_step = b.step(name, b.fmt("run {s}.zig", .{name}));
|
|
|
|
const exe_step = b.step(name, b.fmt("run {s}.zig", .{name}));
|
|
|
|
exe_step.dependOn(&run_cmd.step);
|
|
|
|
exe_step.dependOn(&run_cmd.step);
|
|
|
@ -65,7 +64,7 @@ pub const LibType = enum(i32) {
|
|
|
|
pub fn getPackage(comptime prefix_path: []const u8) std.build.Pkg {
|
|
|
|
pub fn getPackage(comptime prefix_path: []const u8) std.build.Pkg {
|
|
|
|
return .{
|
|
|
|
return .{
|
|
|
|
.name = "ecs",
|
|
|
|
.name = "ecs",
|
|
|
|
.path = prefix_path ++ "src/ecs.zig",
|
|
|
|
.path = .{ .path = prefix_path ++ "src/ecs.zig" },
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|