const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); // const optimize = b.standardOptimizeOption(.{}); const term = b.createModule(.{ .root_source_file = b.path("main.zig"), .target = target, .link_libc = true, }); term.addCMacro("RGFW_IMPLEMENTATION", ""); term.addCMacro("RGFW_OPENGL", ""); term.addIncludePath(b.path("include")); term.addCSourceFile(.{ .file = b.addWriteFiles().add("rgfw.c", "#include "), }); term.linkSystemLibrary("GL", .{}); term.linkSystemLibrary("X11", .{}); term.linkSystemLibrary("Xrandr", .{}); const exe = b.addExecutable(.{ .name = "term", .root_module = term, }); b.installArtifact(exe); const run_exe = b.addRunArtifact(exe); const run_step = b.step("run", "Run the application"); run_step.dependOn(&run_exe.step); }