docmap/build.zig

19 lines
505 B
Zig
Raw Normal View History

2025-01-15 04:42:50 +00:00
const Builder = @import("std").build.Builder;
2025-01-15 04:42:51 +00:00
pub fn build(b: *Builder) void {
2025-01-15 04:42:50 +00:00
const mode = b.standardReleaseOptions();
2025-01-15 04:42:52 +00:00
const exe = b.addExecutable("docmap", "src/main.zig");
2025-01-15 04:42:50 +00:00
exe.setBuildMode(mode);
exe.linkSystemLibrary("SDL2");
2025-01-15 04:42:52 +00:00
exe.linkSystemLibrary("SDL_TTF");
2025-01-15 04:42:50 +00:00
exe.linkSystemLibrary("c");
b.default_step.dependOn(&exe.step);
b.installArtifact(exe);
const run = b.step("run", "Run the demo");
2025-01-15 04:42:51 +00:00
const run_cmd = exe.run();
2025-01-15 04:42:50 +00:00
run.dependOn(&run_cmd.step);
}