@@ -781,14 +781,26 @@ pub fn build(b: *std.Build) !void {
781
781
};
782
782
783
783
const sdl_examples = [_ ]SdlExample {
784
- SdlExample { .path = "examples/audio/01-simple-playback" , .name = "simple-playback" },
785
- SdlExample { .path = "examples/audio/02-simple-playback-callback" , .name = "simple-playback-callback" },
786
- SdlExample { .path = "examples/audio/03-load-wav" , .name = "load-wav" },
787
- SdlExample { .path = "examples/camera/01-read-and-draw" , .name = "read-and-draw" },
788
- SdlExample { .path = "examples/game/01-snake" , .name = "snake" },
789
- SdlExample { .path = "examples/pen/01-drawing-lines" , .name = "drawing-lines" },
790
- SdlExample { .path = "examples/renderer/01-clear" , .name = "renderer-clear" },
791
- SdlExample { .path = "examples/renderer/02-primitives" , .name = "renderer-primitives" },
784
+ SdlExample { .path = "examples/audio/01-simple-playback/simple-playback.c" , .name = "simple-playback" },
785
+ SdlExample { .path = "examples/audio/02-simple-playback-callback/simple-playback-callback.c" , .name = "simple-playback-callback" },
786
+ SdlExample { .path = "examples/audio/03-load-wav/load-wav.c" , .name = "load-wav" },
787
+ SdlExample { .path = "examples/camera/01-read-and-draw/read-and-draw.c" , .name = "read-and-draw" },
788
+ SdlExample { .path = "examples/game/01-snake/snake.c" , .name = "snake" },
789
+ SdlExample { .path = "examples/pen/01-drawing-lines/drawing-lines.c" , .name = "drawing-lines" },
790
+ SdlExample { .path = "examples/renderer/01-clear/clear.c" , .name = "clear" },
791
+ SdlExample { .path = "examples/renderer/02-primitives/primitives.c" , .name = "primitives" },
792
+ SdlExample { .path = "examples/renderer/03-lines/lines.c" , .name = "lines" },
793
+ SdlExample { .path = "examples/renderer/04-points/points.c" , .name = "points" },
794
+ SdlExample { .path = "examples/renderer/05-rectangles/rectangles.c" , .name = "rectangles" },
795
+ SdlExample { .path = "examples/renderer/06-textures/textures.c" , .name = "textures" },
796
+ SdlExample { .path = "examples/renderer/07-streaming-textures/streaming-textures.c" , .name = "streaming-textures" },
797
+ SdlExample { .path = "examples/renderer/08-rotating-textures/rotating-textures.c" , .name = "rotating-textures" },
798
+ SdlExample { .path = "examples/renderer/09-scaling-textures/scaling-textures.c" , .name = "scaling-textures" },
799
+ SdlExample { .path = "examples/renderer/10-geometry/geometry.c" , .name = "geometry" },
800
+ SdlExample { .path = "examples/renderer/11-color-mods/color-mods.c" , .name = "color-mods" },
801
+ SdlExample { .path = "examples/renderer/14-viewport/viewport.c" , .name = "viewport" },
802
+ SdlExample { .path = "examples/renderer/15-cliprect/cliprect.c" , .name = "cliprect" },
803
+ SdlExample { .path = "examples/renderer/17-read-pixels/read-pixels.c" , .name = "read-pixels" },
792
804
};
793
805
794
806
for (sdl_examples ) | sdl_example | {
@@ -801,7 +813,7 @@ pub fn build(b: *std.Build) !void {
801
813
.optimize = optimize ,
802
814
});
803
815
exe .addCSourceFile (.{
804
- .file = sdl_dep .path (b . fmt ( "{s}/{s}.c" , .{ path , name }) ),
816
+ .file = sdl_dep .path (path ),
805
817
.flags = &.{},
806
818
});
807
819
exe .linkLibrary (lib );
@@ -1006,6 +1018,7 @@ const generic_src_files = [_][]const u8{
1006
1018
"src/stdlib/SDL_stdlib.c" ,
1007
1019
"src/stdlib/SDL_string.c" ,
1008
1020
"src/stdlib/SDL_strtokr.c" ,
1021
+ "src/stdlib/SDL_murmur3.c" ,
1009
1022
1010
1023
"src/storage/SDL_storage.c" ,
1011
1024
"src/storage/generic/SDL_genericstorage.c" ,
@@ -1158,6 +1171,7 @@ const linux_src_files = [_][]const u8{
1158
1171
"src/joystick/hidapi/SDL_hidapi_xboxone.c" ,
1159
1172
"src/joystick/hidapi/SDL_hidapijoystick.c" ,
1160
1173
"src/joystick/linux/SDL_sysjoystick.c" ,
1174
+ "src/joystick/hidapi/SDL_hidapi_steam_hori.c" ,
1161
1175
1162
1176
// "src/joystick/n3ds/SDL_sysjoystick.c",
1163
1177
// "src/joystick/ps2/SDL_sysjoystick.c",
0 commit comments