attach zigmod deps to build.zig

This commit is contained in:
Luna 2021-04-09 18:02:31 -03:00
parent c00cde50ed
commit 368675acd7
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
zig-cache/
deps.zig

View file

@ -1,4 +1,5 @@
const std = @import("std");
const deps = @import("./deps.zig");
pub fn build(b: *std.build.Builder) void {
// Standard target options allows the person running `zig build` to choose
@ -14,6 +15,7 @@ pub fn build(b: *std.build.Builder) void {
const exe = b.addExecutable("yet-another-pomf-clone", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
deps.addAllTo(exe);
exe.install();
const run_cmd = exe.run();