From 85e33e96618a5aede27e72e8b2c02de2a35e9c16 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 25 Sep 2022 19:01:31 -0300 Subject: [PATCH] chore: add zig-toml dependency --- .gitmodules | 3 +++ build.zig | 3 +++ lib/zig-toml | 1 + 3 files changed, 7 insertions(+) create mode 160000 lib/zig-toml diff --git a/.gitmodules b/.gitmodules index 2c14e46..78bd5b0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "lib/zig-datetime"] path = lib/zig-datetime url = https://github.com/frmdstryr/zig-datetime +[submodule "lib/zig-toml"] + path = lib/zig-toml + url = https://github.com/aeronavery/zig-toml diff --git a/build.zig b/build.zig index 2ecc83c..97a189d 100644 --- a/build.zig +++ b/build.zig @@ -28,6 +28,9 @@ pub fn build(b: *std.build.Builder) void { // Argument Parsing Library exe.addPackagePath("clap", "lib/zig-clap/clap.zig"); + // TOML Library + exe.addPackagePath("toml", "lib/zig-toml/src/toml.zig"); + // Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig const sdk = Sdk.init(b); sdk.link(exe, .dynamic); diff --git a/lib/zig-toml b/lib/zig-toml new file mode 160000 index 0000000..5dfa919 --- /dev/null +++ b/lib/zig-toml @@ -0,0 +1 @@ +Subproject commit 5dfa919e03b446c66b295c04bef9bdecabd4276f