File tree Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,24 @@ pub fn build(b: *std.Build) void {
4
4
const target = b .standardTargetOptions (.{});
5
5
const optimize = b .standardOptimizeOption (.{});
6
6
7
- const upstream = b .dependency ("sdl_image " , .{});
7
+ const upstream = b .dependency ("SDL_image " , .{});
8
8
9
- const lib = b .addStaticLibrary (.{
9
+ const lib = b .addLibrary (.{
10
10
.name = "SDL3_image" ,
11
- .target = target ,
12
- .optimize = optimize ,
11
+ .version = .{ .major = 3 , .minor = 2 , .patch = 0 },
12
+ .linkage = .static ,
13
+ .root_module = b .createModule (.{
14
+ .target = target ,
15
+ .optimize = optimize ,
16
+ .link_libc = true ,
17
+ }),
13
18
});
14
- lib .linkLibC ();
15
19
16
- const sdl_dep = b .dependency ("sdl " , .{
20
+ const sdl = b .dependency ("SDL " , .{
17
21
.target = target ,
18
22
.optimize = optimize ,
19
- });
20
- const sdl_lib = sdl_dep .artifact ("SDL3" );
21
- lib .linkLibrary (sdl_lib );
23
+ }).artifact ("SDL3" );
24
+ lib .linkLibrary (sdl );
22
25
23
26
// Use stb_image for loading JPEG and PNG files. Native alternatives such as
24
27
// Windows Imaging Component and Apple's Image I/O framework are not yet
Original file line number Diff line number Diff line change 1
1
.{
2
- .name = " SDL_image" ,
2
+ .name = . SDL_image ,
3
3
.version = "3.2.0" ,
4
+ .fingerprint = 0x7d6df3671d68a2f9 ,
5
+ .minimum_zig_version = "0.14.0" ,
4
6
.dependencies = .{
5
- .sdl = .{
6
- .url = "git+https://github.com/castholm/SDL#v0.1.5+SDL- 3.2.4 " ,
7
- .hash = "1220f653f5b656888b522bf5be06fc3062278767cfa7764e5d00eb559056d65b616f " ,
7
+ .SDL = .{
8
+ .url = "git+https://github.com/castholm/SDL/ #v0.2.0+ 3.2.8 " ,
9
+ .hash = "sdl-0.2.0+3.2.8-7uIn9FxHfQE325TK7b0qpgt10G3x1xl-3ZMOfTzxUg3C " ,
8
10
},
9
- .sdl_image = .{
11
+ .SDL_image = .{
10
12
.url = "git+https://github.com/libsdl-org/SDL_image#release-3.2.0" ,
11
- .hash = "12207189639c8fef8c532725a9f9c1fee799587df4a382ba2eac2477a4724c0df805 " ,
13
+ .hash = "N-V-__8AAOcoIgJxiWOcj--MUyclqfnB_ueZWH30o4K6Lqwk " ,
12
14
},
13
15
},
14
16
.paths = .{
You can’t perform that action at this time.
0 commit comments