2025-01-15 04:42:54 +00:00
|
|
|
const std = @import("std");
|
|
|
|
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
|
|
const exe = b.addExecutable(.{
|
|
|
|
.name = "docmap",
|
|
|
|
.root_source_file = b.path("src/main.zig"),
|
|
|
|
.target = b.standardTargetOptions(.{}),
|
|
|
|
.optimize = b.standardOptimizeOption(.{}),
|
|
|
|
});
|
|
|
|
|
|
|
|
exe.addIncludePath(.{ .cwd_relative = "C:/Users/nathanm/Downloads/SDL2-devel-2.26.5-mingw/SDL2-2.26.5/x86_64-w64-mingw32/include/SDL2" });
|
|
|
|
exe.addIncludePath(.{ .cwd_relative = "C:/Users/nathanm/Downloads/SDL2_ttf-devel-2.24.0-mingw/SDL2_ttf-2.24.0/x86_64-w64-mingw32/include/SDL2" });
|
|
|
|
|
|
|
|
exe.addObjectFile(.{ .cwd_relative = "C:/Users/nathanm/Downloads/SDL2-devel-2.30.11-mingw/SDL2-2.30.11/x86_64-w64-mingw32/bin/SDL2.dll" });
|
|
|
|
exe.addObjectFile(.{ .cwd_relative = "C:/Users/nathanm/Downloads/SDL2_ttf-devel-2.24.0-mingw/SDL2_ttf-2.24.0/x86_64-w64-mingw32/bin/SDL2_ttf.dll" });
|
2025-01-15 04:42:50 +00:00
|
|
|
|
|
|
|
exe.linkSystemLibrary("c");
|
|
|
|
|
|
|
|
b.default_step.dependOn(&exe.step);
|
|
|
|
b.installArtifact(exe);
|
|
|
|
}
|