meson: Add option to compile Amiga IFF

Code provided by @lillolollo
Since libilbm and libiff are not in all repositories yet, this adds an option so
it is not required when building GIMP.
This commit is contained in:
Alx Sa 2023-07-12 22:55:20 +00:00
parent b82419305b
commit ab93a1484a
2 changed files with 2 additions and 1 deletions

View File

@ -718,7 +718,7 @@ if have_qoi
MIMEtypes += 'image/qoi'
endif
have_ilbm = cc.has_header('libilbm/ilbm.h')
have_ilbm = cc.has_header('libilbm/ilbm.h', required: get_option('ilbm'))
if have_ilbm
MIMEtypes += 'image/x-ilbm'
endif

View File

@ -39,6 +39,7 @@ option('cairo-pdf', type: 'feature', value: 'auto', description: 'Cairo-
option('ghostscript', type: 'feature', value: 'auto', description: 'Ghostscript support')
option('gudev', type: 'feature', value: 'auto', description: 'Gudev support')
option('heif', type: 'feature', value: 'auto', description: 'HEIF support')
option('ilbm', type: 'feature', value: 'auto', description: 'Amiga IFF support')
option('jpeg2000', type: 'feature', value: 'auto', description: 'Jpeg-2000 support')
option('jpeg-xl', type: 'feature', value: 'auto', description: 'JPEG XL support')
option('mng', type: 'feature', value: 'auto', description: 'Mng support')