Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

17 строки
872 B

  1. const std = @import("std");
  2. const raylib = @import("src/build.zig");
  3. pub fn build(b: *std.Build) void {
  4. // Standard target options allows the person running `zig build` to choose
  5. // what target to build for. Here we do not override the defaults, which
  6. // means any target is allowed, and the default is native. Other options
  7. // for restricting supported target set are available.
  8. const target = b.standardTargetOptions(.{});
  9. // Standard optimization options allow the person running `zig build` to select
  10. // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not
  11. // set a preferred release mode, allowing the user to decide how to optimize.
  12. const optimize = b.standardOptimizeOption(.{});
  13. const lib = raylib.addRaylib(b, target, optimize);
  14. lib.installHeader("src/raylib.h", "raylib.h");
  15. lib.install();
  16. }