add gyro stuff

This commit is contained in:
Emil Lerch 2021-09-15 08:57:21 -07:00
parent 9105902094
commit 7f43050436
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
5 changed files with 31 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.gyro/
zig-cache/
zig-out/

View File

@ -1,4 +1,5 @@
const std = @import("std"); const std = @import("std");
const pkgs = @import("deps.zig").pkgs;
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
@ -11,7 +12,8 @@ pub fn build(b: *std.build.Builder) void {
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const mode = b.standardReleaseOptions(); const mode = b.standardReleaseOptions();
const exe = b.addExecutable("lambda-zig", "src/main.zig"); const exe = b.addExecutable("bootstrap", "src/main.zig");
pkgs.addAllTo(exe);
exe.setTarget(target); exe.setTarget(target);
exe.setBuildMode(mode); exe.setBuildMode(mode);
exe.install(); exe.install();

22
deps.zig Normal file
View File

@ -0,0 +1,22 @@
const std = @import("std");
pub const pkgs = struct {
pub const http = std.build.Pkg{
.name = "http",
.path = .{ .path = ".gyro/http-ducdetronquito-0.1.3-02dd386aa7452ba02887b98078627854/pkg/src/main.zig" },
};
pub fn addAllTo(artifact: *std.build.LibExeObjStep) void {
@setEvalBranchQuota(1_000_000);
inline for (std.meta.declarations(pkgs)) |decl| {
if (decl.is_pub and decl.data == .Var) {
artifact.addPackage(@field(pkgs, decl.name));
}
}
}
};
pub const exports = struct {
};
pub const base_dirs = struct {
pub const http = ".gyro/http-ducdetronquito-0.1.3-02dd386aa7452ba02887b98078627854/pkg";
};

1
gyro.lock Normal file
View File

@ -0,0 +1 @@
pkg default ducdetronquito http 0.1.3

2
gyro.zzz Normal file
View File

@ -0,0 +1,2 @@
deps:
ducdetronquito/http: ^0.1.3