-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdeps.zig
55 lines (49 loc) · 1.35 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
53
54
55
const std = @import("std");
pub const pkgs = struct {
pub const hzzp = std.build.Pkg{
.name = "hzzp",
.source = .{ .path = "lib/hzzp/src/main.zig" },
};
pub const wz = std.build.Pkg{
.name = "wz",
.source = .{ .path = "lib/wz/src/main.zig" },
.dependencies = &[_]std.build.Pkg{
std.build.Pkg{
.name = "hzzp",
.source = .{ .path = "lib/hzzp/src/main.zig" },
},
},
};
pub const iguanaTLS = std.build.Pkg{
.name = "iguanaTLS",
.source = .{ .path = "lib/iguanaTLS/src/main.zig" },
};
pub const zasp = std.build.Pkg{
.name = "zasp",
.source = .{ .path = "lib/zasp/src/main.zig" },
};
pub const all = [_]std.build.Pkg{
pkgs.hzzp,
pkgs.wz,
pkgs.iguanaTLS,
pkgs.zasp,
};
pub fn addAllTo(artifact: *std.build.LibExeObjStep) void {
inline for (all) |pkg| {
artifact.addPackage(pkg);
}
}
};
pub const exports = struct {
pub const zCord = std.build.Pkg{
.name = "zCord",
.source = .{ .path = "src/main.zig" },
.dependencies = &pkgs.all,
};
};
pub const base_dirs = struct {
pub const hzzp = "lib/hzzp";
pub const wz = "lib/wz";
pub const iguanaTLS = "lib/iguanaTLS";
pub const zasp = "lib/zasp";
};