1.44mb-gamejam

submission for the 1.44mb game jam - https://2pgarcade.com/contest-144mb.html
git clone git://brookjeynes.dev/bjeynes/1.44mb-gamejam.git
Log | Files | Refs

build.zig (1041B)


      1 const std = @import("std");
      2 
      3 pub fn build(b: *std.Build) void {
      4     const target = b.standardTargetOptions(.{ .default_target = .{ .cpu_model = .baseline } });
      5     const optimize: std.builtin.OptimizeMode = .ReleaseSmall;
      6 
      7     const raylib = b.dependency("raylib", .{
      8         .optimize = optimize,
      9         .target = target,
     10     });
     11 
     12     const exe = b.addExecutable(.{
     13         .name = "_144mb",
     14         .root_module = b.createModule(.{
     15             .root_source_file = b.path("src/main.zig"),
     16             .target = target,
     17             .optimize = optimize,
     18             .imports = &.{
     19                 .{ .name = "raylib", .module = raylib.module("raylib") },
     20                 .{ .name = "raymath", .module = raylib.module("raymath") },
     21             },
     22         }),
     23     });
     24 
     25     b.installArtifact(exe);
     26 
     27     const run_step = b.step("run", "Run the app");
     28     const run_cmd = b.addRunArtifact(exe);
     29     run_step.dependOn(&run_cmd.step);
     30 
     31     run_cmd.step.dependOn(b.getInstallStep());
     32     if (b.args) |args| {
     33         run_cmd.addArgs(args);
     34     }
     35 }