@@ -81,11 +81,6 @@ pub fn build(b: *std.Build) void {
81
81
}
82
82
}
83
83
84
- { // Tests
85
- const test_step = b .step ("test" , "Run all tests" );
86
- tests (b , target , optimize , test_step );
87
- }
88
-
89
84
{ // Benchmarks
90
85
const benchmark_step = b .step ("benchmark" , "Run all benchmarks" );
91
86
const zmath = b .dependency ("zmath" , .{
@@ -126,6 +121,7 @@ pub const samples_windows_linux = struct {
126
121
127
122
pub const samples_cross_platform = struct {
128
123
pub const sdl2_demo = @import ("samples/sdl2_demo/build.zig" );
124
+ pub const sdl3_demo = @import ("samples/sdl3_demo/build.zig" );
129
125
130
126
// OpenGL samples
131
127
pub const minimal_glfw_gl = @import ("samples/minimal_glfw_gl/build.zig" );
@@ -232,98 +228,6 @@ fn buildAndInstallSamplesWeb(b: *std.Build, options: anytype) void {
232
228
}
233
229
}
234
230
235
- fn tests (
236
- b : * std.Build ,
237
- target : std.Build.ResolvedTarget ,
238
- optimize : std.builtin.OptimizeMode ,
239
- test_step : * std.Build.Step ,
240
- ) void {
241
- // TODO: Renable randomly failing zaudio tests on windows
242
- if (target .result .os .tag != .windows ) {
243
- const zaudio = b .dependency ("zaudio" , .{
244
- .target = target ,
245
- .optimize = optimize ,
246
- });
247
- test_step .dependOn (& b .addRunArtifact (zaudio .artifact ("zaudio-tests" )).step );
248
- }
249
-
250
- // TODO: Get zbullet tests working on Windows again
251
- if (target .result .os .tag != .windows ) {
252
- const zbullet = b .dependency ("zbullet" , .{
253
- .target = target ,
254
- .optimize = optimize ,
255
- });
256
- test_step .dependOn (& b .addRunArtifact (zbullet .artifact ("zbullet-tests" )).step );
257
- }
258
-
259
- const zflecs = b .dependency ("zflecs" , .{
260
- .target = target ,
261
- .optimize = optimize ,
262
- });
263
- test_step .dependOn (& b .addRunArtifact (zflecs .artifact ("zflecs-tests" )).step );
264
-
265
- const zgpu = b .dependency ("zgpu" , .{
266
- .target = target ,
267
- .optimize = optimize ,
268
- });
269
- test_step .dependOn (& b .addRunArtifact (zgpu .artifact ("zgpu-tests" )).step );
270
-
271
- const zgui = b .dependency ("zgui" , .{
272
- .target = target ,
273
- .optimize = optimize ,
274
- .with_te = true ,
275
- });
276
- test_step .dependOn (& b .addRunArtifact (zgui .artifact ("zgui-tests" )).step );
277
-
278
- const zmath = b .dependency ("zmath" , .{
279
- .target = target ,
280
- .optimize = optimize ,
281
- });
282
- test_step .dependOn (& b .addRunArtifact (zmath .artifact ("zmath-tests" )).step );
283
-
284
- const zmesh = b .dependency ("zmesh" , .{
285
- .target = target ,
286
- .optimize = optimize ,
287
- });
288
- test_step .dependOn (& b .addRunArtifact (zmesh .artifact ("zmesh-tests" )).step );
289
-
290
- test_step .dependOn (& b .addRunArtifact (b .dependency ("zphysics" , .{
291
- .target = target ,
292
- .optimize = optimize ,
293
- .use_double_precision = false ,
294
- }).artifact ("zphysics-tests" )).step );
295
-
296
- test_step .dependOn (& b .addRunArtifact (b .dependency ("zphysics" , .{
297
- .target = target ,
298
- .optimize = optimize ,
299
- .use_double_precision = true ,
300
- }).artifact ("zphysics-tests" )).step );
301
-
302
- const zpool = b .dependency ("zpool" , .{
303
- .target = target ,
304
- .optimize = optimize ,
305
- });
306
- test_step .dependOn (& b .addRunArtifact (zpool .artifact ("zpool-tests" )).step );
307
-
308
- const zjobs = b .dependency ("zjobs" , .{
309
- .target = target ,
310
- .optimize = optimize ,
311
- });
312
- test_step .dependOn (& b .addRunArtifact (zjobs .artifact ("zjobs-tests" )).step );
313
-
314
- const zstbi = b .dependency ("zstbi" , .{
315
- .target = target ,
316
- .optimize = optimize ,
317
- });
318
- test_step .dependOn (& b .addRunArtifact (zstbi .artifact ("zstbi-tests" )).step );
319
-
320
- const ztracy = b .dependency ("ztracy" , .{
321
- .target = target ,
322
- .optimize = optimize ,
323
- });
324
- test_step .dependOn (& b .addRunArtifact (ztracy .artifact ("ztracy-tests" )).step );
325
- }
326
-
327
231
// TODO: Delete this once Zig checks minimum_zig_version in build.zig.zon
328
232
fn ensureZigVersion () ! void {
329
233
var installed_ver = builtin .zig_version ;
0 commit comments