aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorJacob Banta <[email protected]>2026-01-19 16:36:43 -0500
committerFuwn <[email protected]>2026-01-20 18:26:19 -0800
commit7fc0738aee5e9a809d754a32faebcedff2133baf (patch)
tree3c85f90e4c1d4619b57bd2c0d86605e6ae6969ca /build.zig
parentupdate binding to TIGR 3.2.2 and Zig 0.15.2 (diff)
downloadzigr-7fc0738aee5e9a809d754a32faebcedff2133baf.tar.xz
zigr-7fc0738aee5e9a809d754a32faebcedff2133baf.zip
change TIGR import to use Zig build system
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 030d90a..4b531fd 100644
--- a/build.zig
+++ b/build.zig
@@ -2,8 +2,8 @@ const std = @import("std");
fn apply(b: *std.Build, lib: *std.Build.Step.Compile) void {
lib.root_module.link_libc = true;
- lib.root_module.addIncludePath(b.path("libs/tigr"));
- lib.root_module.addCSourceFile(.{ .file = b.path("libs/tigr/tigr.c") });
+ lib.root_module.addIncludePath(b.dependency("tigr", .{}).path(""));
+ lib.root_module.addCSourceFile(.{ .file = b.dependency("tigr", .{}).path("tigr.c") });
lib.root_module.linkSystemLibrary("X11", .{});
lib.root_module.linkSystemLibrary("GL", .{});
lib.root_module.linkSystemLibrary("GLU", .{});