@@ -7,15 +7,15 @@ pub fn build(b: *Build) void {
77
88    const  VVVVVV_dep  =  b .dependency ("VVVVVV" , .{});
99    const  sdl_dep  =  switch  (target .result .os .tag ) {
10-         .linux  = >  b .dependency ("sdl " , .{
10+         .linux  = >  b .dependency ("SDL " , .{
1111            .target  =  target ,
1212            .optimize  =  optimize ,
1313            // doesn't support SDL_RENDERER_TARGETTEXTURE 
1414            .render_driver_ogl_es  =  false ,
1515            // doesn't support SDL_RENDERER_ACCELERATED 
1616            .render_driver_software  =  false ,
1717        }),
18-         else  = >  b .dependency ("sdl " , .{
18+         else  = >  b .dependency ("SDL " , .{
1919            .target  =  target ,
2020            .optimize  =  optimize ,
2121            // TODO: disable render_driver_software here as well if/when SDL supports it 
@@ -52,8 +52,8 @@ pub fn build(b: *Build) void {
5252    {
5353        const  sdl  =  sdl_dep .artifact ("SDL2" );
5454        exe .linkLibrary (sdl );
55-         const  header_tree  =  sdl .installed_headers_include_tree   orelse   @panic ( "?" );
56-         exe .addIncludePath (header_tree .getDirectory (). path (b , "SDL2" ));
55+         const  header_tree  =  sdl .getEmittedIncludeTree ( );
56+         exe .addIncludePath (header_tree .path (b , "SDL2" ));
5757        exe .linkLibrary (addFAudio (b , target , optimize , sdl ));
5858    }
5959    exe .linkLibrary (addTinyXml2 (b , target , optimize ));
@@ -69,7 +69,7 @@ pub fn build(b: *Build) void {
6969        const  out_zip_file  =  run_zip .addOutputFileArg ("data.zip" );
7070        run_zip .addDirectoryArg (makeandplay_dep .path ("." ));
7171        b .getInstallStep ().dependOn (
72-             & b .addInstallBinFile (out_zip_file , "data.zip" ).step 
72+             & b .addInstallBinFile (out_zip_file , "data.zip" ).step , 
7373        );
7474    }
7575
@@ -108,7 +108,7 @@ fn addPhysfs(
108108        "src/physfs_platform_haiku.cpp" ,
109109        "src/physfs_platform_android.c" ,
110110    }) catch  @panic ("OOM" );
111-     if  (target .result .isDarwin ()) {
111+     if  (target .result .os . tag . isDarwin ()) {
112112        files .append ("src/physfs_platform_apple.m" ) catch  @panic ("OOM" );
113113    }
114114    lib .addCSourceFiles (.{
@@ -123,7 +123,6 @@ fn addPhysfs(
123123    return  lib ;
124124}
125125
126- 
127126fn  addTinyXml2 (
128127    b : * Build ,
129128    target : Build.ResolvedTarget ,
@@ -195,7 +194,7 @@ fn addSheenBidi(
195194        .files  =  &.{
196195            "Source/SheenBidi.c" ,
197196        },
198-         .flags  =  &.{  "-DSB_CONFIG_UNITY"   },
197+         .flags  =  &.{"-DSB_CONFIG_UNITY" },
199198    });
200199    lib .installHeadersDirectory (headers_path , "." , .{});
201200    lib .linkLibCpp ();
@@ -281,7 +280,7 @@ fn addLodepng(
281280    return  lib ;
282281}
283282
284- const  src  =  [_ ][]const  u8   {
283+ const  src  =  [_ ][]const  u8 {
285284    "desktop_version/src/BinaryBlob.cpp" ,
286285    "desktop_version/src/BlockV.cpp" ,
287286    "desktop_version/src/ButtonGlyphs.cpp" ,
@@ -334,6 +333,6 @@ const src = [_][]const u8 {
334333    "desktop_version/src/Vlogging.c" ,
335334    "desktop_version/src/Xoshiro.c" ,
336335};
337- const  physfs_src  =  [_ ][]const  u8   {
336+ const  physfs_src  =  [_ ][]const  u8 {
338337    "extras/physfsrwops.c" ,
339338};
0 commit comments