Meson: improve summary table (#2943)
* Meson: improve summary table * Fix typo * Remove redundant whitespace
This commit is contained in:
parent
c439d5e5d9
commit
7010903538
@ -85,47 +85,47 @@ enumtypes = gnome.mkenums(
|
||||
|
||||
vips_verbose_config = []
|
||||
vips_verbose_config += 'enable debug: @0@'.format(get_option('debug'))
|
||||
vips_verbose_config += 'enable deprecated library components: @0@'.format(get_option('deprecated'))
|
||||
vips_verbose_config += 'enable deprecated: @0@'.format(get_option('deprecated'))
|
||||
vips_verbose_config += 'enable modules: @0@'.format(modules_enabled)
|
||||
vips_verbose_config += 'use fftw3 for FFT: @0@'.format(fftw_dep.found())
|
||||
vips_verbose_config += 'accelerate loops with orc: @0@'.format(orc_dep.found())
|
||||
vips_verbose_config += 'enable RAD load/save: @0@'.format(get_option('radiance'))
|
||||
vips_verbose_config += 'enable Analyze7 load/save: @0@'.format(get_option('analyze'))
|
||||
vips_verbose_config += 'enable PPM load/save: @0@'.format(get_option('ppm'))
|
||||
vips_verbose_config += 'enable GIF load: @0@'.format(get_option('nsgif'))
|
||||
vips_verbose_config += 'use fftw for FFTs: @0@'.format(fftw_dep.found())
|
||||
vips_verbose_config += 'accelerate loops with ORC: @0@'.format(orc_dep.found())
|
||||
vips_verbose_config += 'ICC profile support with lcms: @0@'.format(lcms_dep.found())
|
||||
vips_verbose_config += 'zlib: @0@'.format(zlib_dep.found())
|
||||
vips_verbose_config += 'text rendering with pangocairo: @0@'.format(pangocairo_dep.found())
|
||||
vips_verbose_config += 'font file support with fontconfig: @0@'.format(fontconfig_dep.found())
|
||||
vips_verbose_config += 'RAD load/save: @0@'.format(get_option('radiance'))
|
||||
vips_verbose_config += 'Analyze7 load/save: @0@'.format(get_option('analyze'))
|
||||
vips_verbose_config += 'PPM load/save: @0@'.format(get_option('ppm'))
|
||||
vips_verbose_config += 'GIF load: @0@'.format(get_option('nsgif'))
|
||||
vips_verbose_config += 'GIF save with cgif: @0@'.format(cgif_dep.found())
|
||||
vips_verbose_config += 'font file support with fontconfig: @0@'.format(fontconfig_found)
|
||||
vips_verbose_config += 'EXIF metadata support with libexif: @0@'.format(libexif_dep.found())
|
||||
vips_verbose_config += 'JPEG load/save with libjpeg: @0@'.format(libjpeg_dep.found())
|
||||
vips_verbose_config += 'JXL load/save with libjxl: @0@ (dynamic module: @1@)'.format(libjxl_dep.found(), modules_enabled and not get_option('jpeg-xl-module').disabled())
|
||||
vips_verbose_config +='JPEG2000 load/save with libopenjp2: @0@'.format(libopenjp2_dep.found())
|
||||
vips_verbose_config += 'PNG load with libspng: @0@'.format(spng_dep.found())
|
||||
vips_verbose_config += 'JPEG2000 load/save with OpenJPEG: @0@'.format(libopenjp2_dep.found())
|
||||
vips_verbose_config += 'PNG load/save with libspng: @0@'.format(spng_dep.found())
|
||||
vips_verbose_config += 'PNG load/save with libpng: @0@'.format(png_dep.found())
|
||||
vips_verbose_config += 'selected quantisation package: @0@'.format(quantisation_package.found() ? quantisation_package.name() : 'none')
|
||||
vips_verbose_config += 'TIFF load/save with libtiff: @0@'.format(libtiff_dep.found())
|
||||
vips_verbose_config += 'image pyramid save: @0@'.format(gsf_dep.found())
|
||||
vips_verbose_config += 'image pyramid save with libgsf: @0@'.format(gsf_dep.found())
|
||||
vips_verbose_config += 'HEIC/AVIF load/save with libheif: @0@ (dynamic module: @1@)'.format(libheif_dep.found(), modules_enabled and not get_option('heif-module').disabled())
|
||||
vips_verbose_config += 'WebP load/save with libwebp: @0@'.format(libwebp_dep.found())
|
||||
vips_verbose_config += 'PDF load with PDFium: @0@'.format(pdfium_dep.found())
|
||||
vips_verbose_config += 'PDF load with poppler-glib: @0@ (dynamic module: @1@)'.format(libpoppler_dep.found(), modules_enabled and not get_option('poppler-module').disabled())
|
||||
vips_verbose_config += 'SVG load with librsvg-2.0: @0@'.format(librsvg_dep.found())
|
||||
vips_verbose_config += 'SVG load with librsvg: @0@'.format(librsvg_found)
|
||||
vips_verbose_config += 'EXR load with OpenEXR: @0@'.format(openexr_dep.found())
|
||||
vips_verbose_config += 'OpenSlide load: @0@ (dynamic module: @1@)'.format(openslide_dep.found(), modules_enabled and not get_option('openslide-module').disabled())
|
||||
vips_verbose_config += 'Matlab load with matio: @0@'.format(matio_dep.found())
|
||||
vips_verbose_config += 'Matlab load with libmatio: @0@'.format(matio_dep.found())
|
||||
vips_verbose_config += 'NIfTI load/save with niftiio: @0@'.format(libnifti_dep.found())
|
||||
vips_verbose_config += 'FITS load/save with cfitsio: @0@'.format(cfitsio_dep.found())
|
||||
vips_verbose_config += 'Magick package: @0@ (dynamic module: @1@)'.format(magick_dep.found(), modules_enabled and not get_option('magick-module').disabled())
|
||||
vips_verbose_config += 'GIF save with cgif: @0@'.format(cgif_dep.found())
|
||||
vips_verbose_config += 'selected Magick package: @0@ (dynamic module: @1@)'.format(magick_dep.found(), modules_enabled and not get_option('magick-module').disabled())
|
||||
if magick_dep.found()
|
||||
magick_version_str = 'magick' + magick_dep.version().split('.')[0]
|
||||
else
|
||||
magick_version_str = 'none'
|
||||
endif
|
||||
vips_verbose_config += 'Magick API version: @0@'.format(magick_version_str)
|
||||
vips_verbose_config += 'load with libMagickCore: @0@'.format(magick_dep.found() and 'load' in get_option('magick-features'))
|
||||
vips_verbose_config += 'save with libMagickCore: @0@'.format(magick_dep.found() and 'save' in get_option('magick-features'))
|
||||
vips_verbose_config += 'Magick load: @0@'.format(magick_dep.found() and 'load' in get_option('magick-features'))
|
||||
vips_verbose_config += 'Magick save: @0@'.format(magick_dep.found() and 'save' in get_option('magick-features'))
|
||||
|
||||
version_data = configuration_data()
|
||||
version_data.set('VIPS_VERSION', meson.project_version())
|
||||
|
110
meson.build
110
meson.build
@ -615,66 +615,54 @@ subdir('tools')
|
||||
subdir('test')
|
||||
subdir('fuzz')
|
||||
|
||||
build_options = [
|
||||
['enable debug ......................', get_option('debug')],
|
||||
['enable deprecated .................', get_option('deprecated')],
|
||||
['enable modules ....................', modules_enabled],
|
||||
['enable gtk-doc ....................', get_option('gtk_doc')],
|
||||
['enable doxygen ....................', get_option('doxygen')],
|
||||
['enable introspection ..............', get_option('introspection')],
|
||||
['enable RAD load/save ..............', get_option('radiance')],
|
||||
['enable Analyze7 load/save .........', get_option('analyze')],
|
||||
['enable PPM load/save ..............', get_option('ppm')],
|
||||
['enable GIF load ...................', get_option('nsgif')],
|
||||
]
|
||||
build_summary = {
|
||||
'Build options':
|
||||
{'enable debug': get_option('debug'),
|
||||
'enable deprecated': get_option('deprecated'),
|
||||
'enable modules': modules_enabled,
|
||||
'enable gtk-doc': get_option('gtk_doc'),
|
||||
'enable doxygen': get_option('doxygen'),
|
||||
'enable introspection': get_option('introspection'),
|
||||
'enable RAD load/save': get_option('radiance'),
|
||||
'enable Analyze7 load/save': get_option('analyze'),
|
||||
'enable PPM load/save': get_option('ppm'),
|
||||
'enable GIF load': get_option('nsgif'),
|
||||
},
|
||||
'Optional external packages':
|
||||
{'use fftw for FFTs': fftw_dep.found(),
|
||||
'accelerate loops with ORC': orc_dep.found(),
|
||||
'ICC profile support with lcms': lcms_dep.found(),
|
||||
'zlib': zlib_dep.found(),
|
||||
'text rendering with pangocairo': pangocairo_dep.found(),
|
||||
'font file support with fontconfig': fontconfig_found,
|
||||
'EXIF metadata support with libexif ': libexif_dep.found(),
|
||||
},
|
||||
'External image format libraries':
|
||||
{'JPEG load/save with libjpeg': libjpeg_dep.found(),
|
||||
'JXL load/save with libjxl': [libjxl_dep.found(), (modules_enabled and not get_option('jpeg-xl-module').disabled()) ? ' (dynamic module)' : ''],
|
||||
'JPEG2000 load/save with OpenJPEG': libopenjp2_dep.found(),
|
||||
'PNG load/save with libspng': spng_dep.found(),
|
||||
'PNG load/save with libpng': png_dep.found(),
|
||||
'selected quantisation package': quantisation_package.found() ? quantisation_package.name() : 'none',
|
||||
'TIFF load/save with libtiff': libtiff_dep.found(),
|
||||
'image pyramid save with libgsf': gsf_dep.found(),
|
||||
'HEIC/AVIF load/save with libheif': [libheif_dep.found(), (modules_enabled and not get_option('heif-module').disabled()) ? ' (dynamic module)' : ''],
|
||||
'WebP load/save with libwebp': libwebp_dep.found(),
|
||||
'PDF load with PDFium': pdfium_dep.found(),
|
||||
'PDF load with poppler-glib': [libpoppler_dep.found(), (modules_enabled and not get_option('poppler-module').disabled()) ? ' (dynamic module)' : ''],
|
||||
'SVG load with librsvg': librsvg_found,
|
||||
'EXR load with OpenEXR': openexr_dep.found(),
|
||||
'OpenSlide load': [openslide_dep.found(), (modules_enabled and not get_option('openslide-module').disabled()) ? ' (dynamic module)' : ''],
|
||||
'Matlab load with libmatio': matio_dep.found(),
|
||||
'NIfTI load/save with niftiio': libnifti_dep.found(),
|
||||
'FITS load/save with cfitsio': cfitsio_dep.found(),
|
||||
'GIF save with cgif': cgif_dep.found(),
|
||||
'selected Magick package': [get_option('magick-package'), (modules_enabled and not get_option('magick-module').disabled()) ? ' (dynamic module)' : ''],
|
||||
'Magick load': magick_dep.found() and 'load' in get_option('magick-features'),
|
||||
'Magick save': magick_dep.found() and 'save' in get_option('magick-features'),
|
||||
},
|
||||
}
|
||||
|
||||
output = '\n\n*Build options\n'
|
||||
foreach option: build_options
|
||||
output += ' @0@: @1@\n'.format(option[0], option[1])
|
||||
foreach section_title, section : build_summary
|
||||
summary(section, bool_yn: true, list_sep: '', section: section_title)
|
||||
endforeach
|
||||
|
||||
external_options = [
|
||||
['use fftw for FFTs .................', fftw_dep.found()],
|
||||
['accelerate loops with ORC .........', orc_dep.found()],
|
||||
['ICC profile support with lcms .....', lcms_dep.found()],
|
||||
['zlib ..............................', zlib_dep.found()],
|
||||
['text rendering with pangocairo ....', pangocairo_dep.found()],
|
||||
['font file support with fontcongfig ', fontconfig_found],
|
||||
['EXIF metadata support with libexif ', libexif_dep.found()],
|
||||
]
|
||||
|
||||
output += '\n*Optional external packages\n'
|
||||
foreach option: external_options
|
||||
output += ' @0@: @1@\n'.format(option[0], option[1])
|
||||
endforeach
|
||||
|
||||
format_options = [
|
||||
['JPEG load/save with libjpeg .......', libjpeg_dep.found()],
|
||||
['JXL load/save with libjxl .........', libjxl_dep.found()],
|
||||
['JPEG2000 load/save with openjpeg ..', libopenjp2_dep.found()],
|
||||
['PNG load/save with libspng ........', spng_dep.found()],
|
||||
['PNG load/save with libpng .........', png_dep.found()],
|
||||
['selected quantisation package .....', quantisation_package.name()],
|
||||
['TIFF load/save with libtiff .......', libtiff_dep.found()],
|
||||
['image pyramid save with libgsf ....', gsf_dep.found()],
|
||||
['HEIC/AVIF load/save with libheif ..', libheif_dep.found()],
|
||||
['WebP load/save with libwebp .......', libwebp_dep.found()],
|
||||
['PDF load with PDFium ..............', pdfium_dep.found()],
|
||||
['PDF load with poppler-glib ........', libpoppler_dep.found()],
|
||||
['SVG load with librsvg .............', librsvg_found],
|
||||
['EXR load/save with openexr ........', openexr_dep.found()],
|
||||
['OpenSlide load ....................', openslide_dep.found()],
|
||||
['Matlab load with libmatio .........', matio_dep.found()],
|
||||
['NIfTI load/save with niftiio ......', libnifti_dep.found()],
|
||||
['FITS load/save with cfitsio .......', cfitsio_dep.found()],
|
||||
['GIF save with cgif ................', cgif_dep.found()],
|
||||
['selected Magick package ...........', get_option('magick-package')],
|
||||
['Magick load/save ..................', magick_dep.found()],
|
||||
]
|
||||
|
||||
output += '\n*External image format libraries\n'
|
||||
foreach option: format_options
|
||||
output += ' @0@: @1@\n'.format(option[0], option[1])
|
||||
endforeach
|
||||
|
||||
message(output)
|
||||
|
Loading…
Reference in New Issue
Block a user