summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorphysick <mynameisgennadiy@vk.com>2026-07-12 11:13:08 +0500
committerphysick <mynameisgennadiy@vk.com>2026-07-12 11:13:08 +0500
commit58a26ca05aacb4736e9e7e652badd43a8085d1f1 (patch)
tree5009c076fdcf83c970a580624f02dc89cb3d2beb /build.zig
parenta35731f94b0f0072783d7aba8dd24670b75716cc (diff)
rudimentary code execution
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index b5bbf33..874aaff 100644
--- a/build.zig
+++ b/build.zig
@@ -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,