|
|
@ -24,6 +24,13 @@ pub fn build(b: *Builder) void {
|
|
|
|
exe.addPackagePath("ecs", "src/ecs.zig");
|
|
|
|
exe.addPackagePath("ecs", "src/ecs.zig");
|
|
|
|
exe.linkSystemLibrary("c");
|
|
|
|
exe.linkSystemLibrary("c");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const docs = exe;
|
|
|
|
|
|
|
|
docs.emit_docs = .emit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const doc = b.step("docs", "Generate documentation");
|
|
|
|
|
|
|
|
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);
|
|
|
|