@@ -147,37 +147,6 @@ pub fn link_SDL3(compile_step: *std.Build.Step.Compile) void {
147147 // calls from the README into your build.zig file and adjust as necessary.
148148}
149149
150- pub fn testVersionCheckSDL2 (b : * std.Build , target : std.Build.ResolvedTarget ) * std.Build.Step {
151- const test_sdl2_version_check = b .addTest (.{
152- .name = "sdl2-version-check" ,
153- .root_module = b .createModule (.{
154- .root_source_file = b .dependency ("zsdl" , .{}).path ("src/sdl2_version_check.zig" ),
155- .target = target ,
156- .optimize = .ReleaseSafe ,
157- }),
158- });
159-
160- link_SDL2_libs_testing (test_sdl2_version_check );
161-
162- prebuilt_sdl2 .addLibraryPathsTo (test_sdl2_version_check );
163-
164- const version_check_run = b .addRunArtifact (test_sdl2_version_check );
165-
166- if (target .result .os .tag == .windows ) {
167- version_check_run .setCwd (.{
168- .cwd_relative = b .getInstallPath (.bin , "" ),
169- });
170- }
171-
172- version_check_run .step .dependOn (& test_sdl2_version_check .step );
173-
174- if (prebuilt_sdl2 .install (b , target .result , .bin , .{})) | install_sdl2_step | {
175- version_check_run .step .dependOn (install_sdl2_step );
176- }
177-
178- return & version_check_run .step ;
179- }
180-
181150pub const prebuilt_sdl2 = struct {
182151 pub fn addLibraryPathsTo (compile_step : * std.Build.Step.Compile ) void {
183152 const b = compile_step .step .owner ;
0 commit comments