File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
# [ zsdl] ( https://github.com/zig-gamedev/zsdl )
2
2
3
- Zig bindings for SDL libs. Work in progress.
3
+ Zigified bindings for SDL libs. Work in progress.
4
4
5
5
## Getting started (SDL2)
6
6
@@ -24,16 +24,13 @@ pub fn build(b: *std.Build) !void {
24
24
@import("zsdl").link_SDL2_image(exe);
25
25
26
26
// Optionally use prebuilt libs instead of relying on system installed SDL...
27
- @import("zsdl").prebuilt.addLibraryPathsTo(exe);
28
- if (@import("zsdl").prebuilt.install_SDL2(b, target.result, .bin)) |install_sdl2_step| {
27
+ @import("zsdl").prebuilt_sdl2.addLibraryPathsTo(exe);
28
+ if (@import("zsdl").prebuilt_sdl2.install_SDL2(b, target.result, .bin), .{
29
+ .ttf = true,
30
+ .image = true,
31
+ }) |install_sdl2_step| {
29
32
b.getInstallStep().dependOn(install_sdl2_step);
30
33
}
31
- if (@import("zsdl").prebuilt.install_SDL2_ttf(b, target.result, .bin)) |install_sdl2_ttf_step| {
32
- b.getInstallStep().dependOn(install_sdl2_ttf_step);
33
- }
34
- if (@import("zsdl").prebuilt.install_SDL2_image(b, target.result, .bin)) |install_sdl2_image_step| {
35
- b.getInstallStep().dependOn(install_sdl2_image_step);
36
- }
37
34
}
38
35
```
39
36
You can’t perform that action at this time.
0 commit comments