const Builder = @import("std").build.Builder; const builtin = @import("builtin"); pub fn build(b: *Builder) void { const target = b.standardTargetOptions(.{}); const mode = b.standardReleaseOptions(); const windows = b.option(bool, "windows", "create windows build") orelse false; var exe = b.addExecutable("test", "src/main.zig"); exe.setBuildMode(mode); exe.linkSystemLibrary("c"); exe.linkSystemLibrary("glfw"); exe.linkSystemLibrary("epoxy"); exe.addIncludeDir("cimgui"); exe.linkSystemLibraryName("cimgui/cimgui.so"); exe.install(); const play = b.step("play", "Play the game"); const run = exe.run(); run.step.dependOn(b.getInstallStep()); play.dependOn(&run.step); }