aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--build.zig3
m---------deps/zigimg0
3 files changed, 6 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..63ed6e7
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "deps/zigimg"]
+ path = deps/zigimg
+ url = https://github.com/zigimg/zigimg.git
diff --git a/build.zig b/build.zig
index d566eb2..6dbb3b1 100644
--- a/build.zig
+++ b/build.zig
@@ -12,6 +12,9 @@ pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("RayTracingInOneWeekend", "src/main.zig");
+
+ exe.addPackagePath("zigimg", "deps/zigimg/zigimg.zig");
+
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
diff --git a/deps/zigimg b/deps/zigimg
new file mode 160000
+Subproject 64d04a63814b54301182194dadccd1f28c91906