build: add casing

Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-07-02 07:52:12 -04:00
parent 73c7b61c57
commit 4ec1a99040
1 changed files with 2 additions and 3 deletions

View File

@ -30,16 +30,15 @@ fn release(b: *std.build.Step) !void {
}
pub fn build(b: *std.build.Builder) !void {
const map_step = b.step("mapgen", "generate maps");
const map_step = b.step("mapgen", "Generate maps from Tiled JSON");
map_step.makeFn = mapgen;
const release_step = b.step("release", "generate release binaries");
const release_step = b.step("release", "Generate release binaries");
release_step.makeFn = release;
release_step.dependOn(map_step);
const mode = b.standardReleaseOptions();
const lib = b.addSharedLibrary("cart", "src/main.zig", .unversioned);
//lib.step.dependOn(map_step);
lib.setBuildMode(mode);
lib.setTarget(.{ .cpu_arch = .wasm32, .os_tag = .freestanding });