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");
|
2023-06-17 04:01:59 +00:00
|
|
|
exe.linkSystemLibrary("SDL2_TTF");
|
2017-10-26 03:30:19 +00:00
|
|
|
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);
|
|
|
|
}
|