Skip to content

Commit f8629df

Browse files
authored
Merge pull request #89 from Interrupt/zig-15
Zig 0.15 support
2 parents f44493b + caa901f commit f8629df

File tree

121 files changed

+6989
-124087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+6989
-124087
lines changed

3rdparty/stb_truetype/build.zig

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ pub fn build(b: *std.Build) void {
44
const optimize = b.standardOptimizeOption(.{});
55
const target = b.standardTargetOptions(.{});
66

7-
const root = b.addModule("root", .{
7+
const root_module = b.addModule("root", .{
88
.root_source_file = b.path("src/stb_truetype.zig"),
9-
});
10-
11-
root.addIncludePath(b.path("libs"));
12-
13-
const lib = b.addStaticLibrary(.{
149
.target = target,
1510
.optimize = optimize,
11+
});
12+
13+
const lib = b.addLibrary(.{
1614
.name = "stb_truetype",
15+
.linkage = .static,
16+
.root_module = root_module,
1717
});
1818

1919
lib.addCSourceFile(.{
@@ -32,9 +32,11 @@ pub fn build(b: *std.Build) void {
3232

3333
const tests = b.addTest(.{
3434
.name = "stb-truetype-tests",
35-
.root_source_file = b.path("src/stb_truetype.zig"),
36-
.target = target,
37-
.optimize = optimize,
35+
.root_module = b.createModule(.{
36+
.root_source_file = b.path("src/stb_truetype.zig"),
37+
.target = target,
38+
.optimize = optimize,
39+
}),
3840
});
3941

4042
tests.linkLibrary(lib);

3rdparty/stb_truetype/build.zig.zon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "stb_truetype",
2+
.name = .stb_truetype,
3+
.fingerprint = 0xea495ce20c6b4018,
34
.version = "0.1.0",
45
.paths = .{
56
"build.zig",

3rdparty/zaudio/LICENSE

Lines changed: 0 additions & 22 deletions
This file was deleted.

3rdparty/zaudio/README.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

3rdparty/zaudio/build.zig

Lines changed: 0 additions & 70 deletions
This file was deleted.

3rdparty/zaudio/build.zig.zon

Lines changed: 0 additions & 14 deletions
This file was deleted.

3rdparty/zaudio/libs/miniaudio/miniaudio.c

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)