Skip to content

Commit 3266e42

Browse files
authored
Update SDL_image port to 2.6.0 (#19014)
This seems to be the latest release that exists on the SDL2 branch of the upstream repository. I verified that both of own downstream patches that we had in the emscripten-ports fork have since landed upstream: libsdl-org/SDL_image@1d92df494 libsdl-org/SDL_image@840782235 I also verified that both of these made it into the 2.6.0 release. This change is needed as part of #19004 but it also allows us to delete our fork which is nice.
1 parent 385e037 commit 3266e42

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ See docs/process.md for more on how version tagging works.
2020

2121
3.1.35 (in development)
2222
-----------------------
23+
- `SDL_image` port was updated to version 2.6.0.
2324
- `-z` arguments are now passed directly to wasm-ld without the need for the
2425
`-Wl,` prefix. This matches the behaviour of both clang and gcc. (#18956)
2526
- Reverted #18525 which runs the JS pre-processor over files passed via

tools/ports/sdl2_image.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import os
77

8-
TAG = 'version_4'
9-
HASH = '30a7b04652239bccff3cb1fa7cd8ae602791b5f502a96df39585c13ebc4bb2b64ba1598c0d1f5382028d94e04a5ca02185ea06bf7f4b3520f6df4cc253f9dd24'
8+
TAG = 'release-2.6.0'
9+
HASH = '2175d11a90211871f2289c8d57b31fe830e4b46af7361925c2c30cd521c1c677d2ee244feb682b6d3909cf085129255934751848fc81b480ea410952d990ffe0'
1010

1111
deps = ['sdl2']
1212
variants = {
@@ -32,14 +32,15 @@ def get_lib_name(settings):
3232
def get(ports, settings, shared):
3333
sdl_build = os.path.join(ports.get_build_dir(), 'sdl2')
3434
assert os.path.exists(sdl_build), 'You must use SDL2 to use SDL2_image'
35-
ports.fetch_project('sdl2_image', f'https://github.com/emscripten-ports/SDL2_image/archive/{TAG}.zip', sha512hash=HASH)
35+
ports.fetch_project('sdl2_image', f'https://github.com/libsdl-org/SDL_image/archive/refs/tags/{TAG}.zip', sha512hash=HASH)
3636
libname = get_lib_name(settings)
3737

3838
def create(final):
39-
src_dir = os.path.join(ports.get_dir(), 'sdl2_image', 'SDL2_image-' + TAG)
39+
src_dir = os.path.join(ports.get_dir(), 'sdl2_image', 'SDL_image-' + TAG)
4040
ports.install_headers(src_dir, target='SDL2')
4141
srcs = '''IMG.c IMG_bmp.c IMG_gif.c IMG_jpg.c IMG_lbm.c IMG_pcx.c IMG_png.c IMG_pnm.c IMG_tga.c
42-
IMG_tif.c IMG_xcf.c IMG_xpm.c IMG_xv.c IMG_webp.c IMG_ImageIO.m'''.split()
42+
IMG_tif.c IMG_xcf.c IMG_xpm.c IMG_xv.c IMG_webp.c IMG_ImageIO.m
43+
IMG_avif.c IMG_jxl.c IMG_svg.c IMG_qoi.c'''.split()
4344

4445
defs = ['-O2', '-sUSE_SDL=2', '-Wno-format-security']
4546

0 commit comments

Comments
 (0)