docmap/build.zig

18 lines
467 B
Zig
Raw Normal View History

2017-10-26 03:30:19 +00:00
const Builder = @import("std").build.Builder;
2018-06-10 03:13:57 +00:00
pub fn build(b: *Builder) void {
2017-10-26 03:30:19 +00:00
const mode = b.standardReleaseOptions();
2023-06-11 04:34:49 +00:00
const exe = b.addExecutable("docmap", "src/main.zig");
2017-10-26 03:30:19 +00:00
exe.setBuildMode(mode);
exe.linkSystemLibrary("SDL2");
exe.linkSystemLibrary("c");
b.default_step.dependOn(&exe.step);
b.installArtifact(exe);
const run = b.step("run", "Run the demo");
2021-03-29 19:18:07 +00:00
const run_cmd = exe.run();
2017-10-26 03:30:19 +00:00
run.dependOn(&run_cmd.step);
}