summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
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,