diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-07-12 11:13:08 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-07-12 11:13:08 +0500 |
| commit | 58a26ca05aacb4736e9e7e652badd43a8085d1f1 (patch) | |
| tree | 5009c076fdcf83c970a580624f02dc89cb3d2beb /build.zig | |
| parent | a35731f94b0f0072783d7aba8dd24670b75716cc (diff) | |
rudimentary code execution
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -14,6 +14,8 @@ pub fn build(b: *std.Build) void { root.addCSourceFiles(.{ .files = &[_][]const u8 { "src/main.c", + "src/utils/stringBuilder.c", + "src/wren_inter/wren_inter.c", "src/resources/resources.c", "src/ui_elements/UI.c", "src/ui_elements/TextEditor.c", @@ -24,6 +26,7 @@ pub fn build(b: *std.Build) void { } }); + // Linking raylib if (builtin.target.os.tag == .windows) { // If you are building on windows you need to provide your own // raylib. Put it in the raylib dir @@ -34,6 +37,15 @@ pub fn build(b: *std.Build) void { root.linkSystemLibrary("raylib", .{.needed = true}); root.addIncludePath(b.path("include/")); + // Linking wren. They do not provide system-wide libraries so you have to + // provide them yourself + root.addIncludePath(b.path("wren/src/include/")); + root.addLibraryPath(b.path("wren/lib/")); + root.linkSystemLibrary("wren", .{ + .needed = true, + .preferred_link_mode = .static, + }); + const exe = b.addExecutable(.{ .name = "game", .root_module = root, |
