add gyro stuff
This commit is contained in:
parent
9105902094
commit
7f43050436
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.gyro/
|
||||
zig-cache/
|
||||
zig-out/
|
|
@ -1,4 +1,5 @@
|
|||
const std = @import("std");
|
||||
const pkgs = @import("deps.zig").pkgs;
|
||||
|
||||
pub fn build(b: *std.build.Builder) void {
|
||||
// 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.
|
||||
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.setBuildMode(mode);
|
||||
exe.install();
|
||||
|
|
22
deps.zig
Normal file
22
deps.zig
Normal 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";
|
||||
};
|
Loading…
Reference in New Issue
Block a user