Skip to content

Commit 885271b

Browse files
committed
[sdl2-image] Remove support for unsupported image codecs
Supporting these codecs would require adding more specific ports. Fixes: #24614
1 parent 335fb7d commit 885271b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/ports/sdl2_image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
'formats': 'A comma separated list of formats (ex: --use-port=sdl2_image:formats=png,jpg)',
2121
}
2222

23-
SUPPORTED_FORMATS = {'avif', 'bmp', 'gif', 'jpg', 'jxl', 'lbm', 'pcx', 'png',
24-
'pnm', 'qoi', 'svg', 'tga', 'tif', 'webp', 'xcf', 'xpm', 'xv'}
23+
SUPPORTED_FORMATS = {'bmp', 'gif', 'jpg', 'lbm', 'pcx', 'png',
24+
'pnm', 'qoi', 'svg', 'tga', 'xcf', 'xpm', 'xv'}
2525

2626
# user options (from --use-port)
2727
opts: Dict[str, Set] = {
@@ -58,8 +58,8 @@ def create(final):
5858
src_dir = ports.get_dir('sdl2_image', 'SDL_image-' + TAG)
5959
ports.install_headers(src_dir, target='SDL2')
6060
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
61-
IMG_tif.c IMG_xcf.c IMG_xpm.c IMG_xv.c IMG_webp.c IMG_ImageIO.m
62-
IMG_avif.c IMG_jxl.c IMG_svg.c IMG_qoi.c'''.split()
61+
IMG_xcf.c IMG_xpm.c IMG_xv.c IMG_ImageIO.m
62+
IMG_svg.c IMG_qoi.c'''.split()
6363

6464
flags = ['-sUSE_SDL=2', '-Wno-format-security']
6565

0 commit comments

Comments
 (0)