aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--build.zig4
-rw-r--r--build.zig.zon7
m---------libs/tigr0
4 files changed, 8 insertions, 6 deletions
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index c28d207..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "libs/tigr"]
- path = libs/tigr
- url = https://github.com/erkkah/tigr
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", .{});
diff --git a/build.zig.zon b/build.zig.zon
index 1bec40c..8fbf16d 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -1,7 +1,12 @@
.{
.name = .zigr,
.version = "3.2.2",
- .dependencies = .{},
+ .dependencies = .{
+ .tigr = .{
+ .url = "git+https://github.com/erkkah/tigr#f7bf2abbf6b26e649ced5691003e87b61c03762e",
+ .hash = "N-V-__8AAIdnEACvJuP1P4YvA1yDg99-JRQFBu_23aLlCjB5",
+ },
+ },
.minimum_zig_version = "0.15.2",
.paths = .{""},
.fingerprint = 0xf677823b7201c08d,
diff --git a/libs/tigr b/libs/tigr
deleted file mode 160000
-Subproject f7bf2abbf6b26e649ced5691003e87b61c03762