attach zigmod deps to build.zig
This commit is contained in:
parent
c00cde50ed
commit
368675acd7
2 changed files with 3 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
zig-cache/
|
||||
deps.zig
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue