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/
|
zig-cache/
|
||||||
|
deps.zig
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
const deps = @import("./deps.zig");
|
||||||
|
|
||||||
pub fn build(b: *std.build.Builder) void {
|
pub fn build(b: *std.build.Builder) void {
|
||||||
// Standard target options allows the person running `zig build` to choose
|
// 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");
|
const exe = b.addExecutable("yet-another-pomf-clone", "src/main.zig");
|
||||||
exe.setTarget(target);
|
exe.setTarget(target);
|
||||||
exe.setBuildMode(mode);
|
exe.setBuildMode(mode);
|
||||||
|
deps.addAllTo(exe);
|
||||||
exe.install();
|
exe.install();
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = exe.run();
|
||||||
|
|
Loading…
Reference in a new issue