This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.zig
52 lines (49 loc) · 1.48 KB
/
deps.zig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const std = @import("std");
pub const pkgs = struct {
pub const zfetch = std.build.Pkg{
.name = "zfetch",
.path = .{ .path = "deps/zfetch/src/main.zig" },
.dependencies = &[_]std.build.Pkg{
std.build.Pkg{
.name = "hzzp",
.path = .{ .path = "deps/hzzp/src/main.zig" },
},
std.build.Pkg{
.name = "iguanaTLS",
.path = .{ .path = "deps/iguanaTLS/src/main.zig" },
},
std.build.Pkg{
.name = "network",
.path = .{ .path = "deps/zig-network/network.zig" },
},
std.build.Pkg{
.name = "uri",
.path = .{ .path = "deps/zig-uri/uri.zig" },
},
},
};
pub const zjson = std.build.Pkg{
.name = "zjson",
.path = .{ .path = "deps/zjson/src/lib.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 ytmusic = std.build.Pkg{
.name = "ytmusic",
.path = .{ .path = "src/main.zig" },
.dependencies = &.{
pkgs.zfetch,
},
};
};
pub const base_dirs = struct {
pub const wz = "lib/wz";
};