diff options
| author | star-tek-mb <[email protected]> | 2023-02-05 17:03:03 +0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-05 13:03:03 +0100 |
| commit | ff70a04bf5e2aea84fe9d71cede790e1a031f810 (patch) | |
| tree | bff602ff0e2c1622e683e7b1bcc7222931639d12 /build.zig | |
| parent | 60d0ab418a3011fe5df663ac4be37ee53bcc5393 (diff) | |
| download | raylib-ff70a04bf5e2aea84fe9d71cede790e1a031f810.tar.gz raylib-ff70a04bf5e2aea84fe9d71cede790e1a031f810.zip | |
update zig build to latest master (#2910)
also, adds package manager support
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build.zig b/build.zig new file mode 100644 index 00000000..9959d8e0 --- /dev/null +++ b/build.zig @@ -0,0 +1,18 @@ +const std = @import("std"); +const raylib = @import("src/build.zig"); + +pub fn build(b: *std.Build) void { + // Standard target options allows the person running `zig build` to choose + // what target to build for. Here we do not override the defaults, which + // means any target is allowed, and the default is native. Other options + // for restricting supported target set are available. + const target = b.standardTargetOptions(.{}); + // Standard optimization options allow the person running `zig build` to select + // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not + // set a preferred release mode, allowing the user to decide how to optimize. + const optimize = b.standardOptimizeOption(.{}); + + const lib = raylib.addRaylib(b, target, optimize); + lib.installHeader("src/raylib.h", "raylib.h"); + lib.install(); +}
\ No newline at end of file |
