Skip to content

Commit 358701f

Browse files
committed
Tests use prebuilt libs (for now)
1 parent 1ba4d85 commit 358701f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

build.zig

+2
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ fn addTests(
333333
.target = target,
334334
.optimize = optimize,
335335
});
336+
// TODO(hazeycode): Using prebuilt libs for now. Compile from source in future.
337+
prebuilt.addLibraryPathsTo(tests);
336338
b.installArtifact(tests);
337339
test_step.dependOn(&b.addRunArtifact(tests).step);
338340
return tests;

build.zig.zon

+17
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,21 @@
99
"README.md",
1010
"LICENSE",
1111
},
12+
.dependencies = .{
13+
.@"sdl2-prebuilt-macos" = .{
14+
.url = "https://github.com/zig-gamedev/sdl2-prebuilt-macos/archive/f14773fa3de719b3a399b854c31eb4139d63842f.tar.gz",
15+
.hash = "12205cb2da6fb4a7fcf28b9cd27b60aaf12f4d4a55be0260b1ae36eaf93ca5a99f03",
16+
.lazy = true,
17+
},
18+
.@"sdl2-prebuilt-x86_64-windows-gnu" = .{
19+
.url = "https://github.com/zig-gamedev/sdl2-prebuilt-x86_64-windows-gnu/archive/8143e2a5c28dbace399cbff14c3e8749a1afd418.tar.gz",
20+
.hash = "1220ade6b84d06d73bf83cef22c73ec4abc21a6d50b9f48875f348b7942c80dde11b",
21+
.lazy = true,
22+
},
23+
.@"sdl2-prebuilt-x86_64-linux-gnu" = .{
24+
.url = "https://github.com/zig-gamedev/sdl2-prebuilt-x86_64-linux-gnu/archive/2eccc574ad909b0d00b694b10c217a95145c47af.tar.gz",
25+
.hash = "12200ecb91c0596d0356ff39d573af83abcd44fecb27943589f11c2cd172763fea39",
26+
.lazy = true,
27+
},
28+
},
1229
}

0 commit comments

Comments
 (0)