diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2024-09-08 19:30:36 -0400 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2024-09-08 19:30:36 -0400 |
| commit | e510e859a46835e0b1add6221ac9482a2402cd7a (patch) | |
| tree | e9116667323bd166499304027b1457f89be5ca66 /build.zig | |
| parent | 77c68660c467c4742bd1449bc1eddefb389723ca (diff) | |
idk
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -50,6 +50,19 @@ pub fn build(b: *std.Build) !void { .target = target, .optimize = optimize, }); + + // https://kristoff.it/blog/improving-your-zls-experience/ + const exe_check = b.addExecutable(.{ + .name = "zig-raylib", + // In this case the main source file is merely a path, however, in more + // complicated build scripts, this could be a generated file. + .root_source_file = .{ .path = "src/main.zig" }, + .target = target, + .optimize = optimize, + }); + const check = b.step("check", "Check if it compiles"); + check.dependOn(&exe_check.step); + exe.addIncludePath(.{ .path = "raylib/src" }); exe.linkLibrary(raylib); |
