aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-02-25 16:25:15 +0900
committernsfisis <nsfisis@gmail.com>2023-05-07 10:08:25 +0900
commit941e50328c39132f1c80e5cb1f5e07134cfc4222 (patch)
tree1be099fd3e5c20a419eac4435570f937b06a676a
parent396df5b891aa702b7f37b91edd7ed060280b70b6 (diff)
downloadRayTracingInOneWeekend.zig-941e50328c39132f1c80e5cb1f5e07134cfc4222.tar.gz
RayTracingInOneWeekend.zig-941e50328c39132f1c80e5cb1f5e07134cfc4222.tar.zst
RayTracingInOneWeekend.zig-941e50328c39132f1c80e5cb1f5e07134cfc4222.zip
feat: add dependency, zigimg
-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