Add zigmod and zig-clap
This commit is contained in:
parent
f4e2146723
commit
3beadfbe8f
4 changed files with 6 additions and 1 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1,5 +1,5 @@
|
|||
* text=auto
|
||||
*.zig text eol=lf # See https://github.com/ziglang/zig-spec/issues/38
|
||||
*.zig text eol=lf
|
||||
zig.mod text eol=lf
|
||||
zigmod.* text eol=lf
|
||||
zig.mod linguist-language=YAML
|
||||
|
|
|
@ -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("skip", "src/main.zig");
|
||||
exe.setTarget(target);
|
||||
exe.setBuildMode(mode);
|
||||
deps.addAllTo(exe);
|
||||
exe.install();
|
||||
|
||||
const run_cmd = exe.run();
|
||||
|
|
1
zig.mod
1
zig.mod
|
@ -3,3 +3,4 @@ name: skip
|
|||
license: MIT
|
||||
description: skip part of a file
|
||||
dev_dependencies:
|
||||
- src: git https://github.com/Hejsil/zig-clap
|
||||
|
|
2
zigmod.lock
Normal file
2
zigmod.lock
Normal file
|
@ -0,0 +1,2 @@
|
|||
2
|
||||
git https://github.com/Hejsil/zig-clap commit-802a04a854e65254b0632d9785b2b0f6154686b8
|
Loading…
Reference in a new issue