@@ -7,15 +7,15 @@ pub fn build(b: *Build) void {
7
7
8
8
const VVVVVV_dep = b .dependency ("VVVVVV" , .{});
9
9
const sdl_dep = switch (target .result .os .tag ) {
10
- .linux = > b .dependency ("sdl " , .{
10
+ .linux = > b .dependency ("SDL " , .{
11
11
.target = target ,
12
12
.optimize = optimize ,
13
13
// doesn't support SDL_RENDERER_TARGETTEXTURE
14
14
.render_driver_ogl_es = false ,
15
15
// doesn't support SDL_RENDERER_ACCELERATED
16
16
.render_driver_software = false ,
17
17
}),
18
- else = > b .dependency ("sdl " , .{
18
+ else = > b .dependency ("SDL " , .{
19
19
.target = target ,
20
20
.optimize = optimize ,
21
21
// TODO: disable render_driver_software here as well if/when SDL supports it
@@ -52,8 +52,8 @@ pub fn build(b: *Build) void {
52
52
{
53
53
const sdl = sdl_dep .artifact ("SDL2" );
54
54
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" ));
57
57
exe .linkLibrary (addFAudio (b , target , optimize , sdl ));
58
58
}
59
59
exe .linkLibrary (addTinyXml2 (b , target , optimize ));
@@ -69,7 +69,7 @@ pub fn build(b: *Build) void {
69
69
const out_zip_file = run_zip .addOutputFileArg ("data.zip" );
70
70
run_zip .addDirectoryArg (makeandplay_dep .path ("." ));
71
71
b .getInstallStep ().dependOn (
72
- & b .addInstallBinFile (out_zip_file , "data.zip" ).step
72
+ & b .addInstallBinFile (out_zip_file , "data.zip" ).step ,
73
73
);
74
74
}
75
75
@@ -108,7 +108,7 @@ fn addPhysfs(
108
108
"src/physfs_platform_haiku.cpp" ,
109
109
"src/physfs_platform_android.c" ,
110
110
}) catch @panic ("OOM" );
111
- if (target .result .isDarwin ()) {
111
+ if (target .result .os . tag . isDarwin ()) {
112
112
files .append ("src/physfs_platform_apple.m" ) catch @panic ("OOM" );
113
113
}
114
114
lib .addCSourceFiles (.{
@@ -123,7 +123,6 @@ fn addPhysfs(
123
123
return lib ;
124
124
}
125
125
126
-
127
126
fn addTinyXml2 (
128
127
b : * Build ,
129
128
target : Build.ResolvedTarget ,
@@ -195,7 +194,7 @@ fn addSheenBidi(
195
194
.files = &.{
196
195
"Source/SheenBidi.c" ,
197
196
},
198
- .flags = &.{ "-DSB_CONFIG_UNITY" },
197
+ .flags = &.{"-DSB_CONFIG_UNITY" },
199
198
});
200
199
lib .installHeadersDirectory (headers_path , "." , .{});
201
200
lib .linkLibCpp ();
@@ -281,7 +280,7 @@ fn addLodepng(
281
280
return lib ;
282
281
}
283
282
284
- const src = [_ ][]const u8 {
283
+ const src = [_ ][]const u8 {
285
284
"desktop_version/src/BinaryBlob.cpp" ,
286
285
"desktop_version/src/BlockV.cpp" ,
287
286
"desktop_version/src/ButtonGlyphs.cpp" ,
@@ -334,6 +333,6 @@ const src = [_][]const u8 {
334
333
"desktop_version/src/Vlogging.c" ,
335
334
"desktop_version/src/Xoshiro.c" ,
336
335
};
337
- const physfs_src = [_ ][]const u8 {
336
+ const physfs_src = [_ ][]const u8 {
338
337
"extras/physfsrwops.c" ,
339
338
};
0 commit comments