Add zigmod and zig-clap

This commit is contained in:
Paul Campbell 2021-12-30 08:03:46 +00:00
parent f4e2146723
commit 3beadfbe8f
4 changed files with 6 additions and 1 deletions

2
.gitattributes vendored
View file

@ -1,5 +1,5 @@
* text=auto * text=auto
*.zig text eol=lf # See https://github.com/ziglang/zig-spec/issues/38 *.zig text eol=lf
zig.mod text eol=lf zig.mod text eol=lf
zigmod.* text eol=lf zigmod.* text eol=lf
zig.mod linguist-language=YAML zig.mod linguist-language=YAML

View file

@ -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("skip", "src/main.zig"); const exe = b.addExecutable("skip", "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();

View file

@ -3,3 +3,4 @@ name: skip
license: MIT license: MIT
description: skip part of a file description: skip part of a file
dev_dependencies: dev_dependencies:
- src: git https://github.com/Hejsil/zig-clap

2
zigmod.lock Normal file
View file

@ -0,0 +1,2 @@
2
git https://github.com/Hejsil/zig-clap commit-802a04a854e65254b0632d9785b2b0f6154686b8