meson.build: Use CMake to find libjpeg on MSVC-like builds

One may be using IJG libjpeg or libjpeg-turbo to build GTK, and their
build files may or may not generate pkg-config files for us.  To make
things easier, we can make use of CMake's built-in support for finding
IJG libjpeg or libjpeg-turbo.
This commit is contained in:
Chun-wei Fan 2022-02-21 17:50:15 +08:00
parent 6eda5deeff
commit 2e34d62111

View File

@ -422,7 +422,7 @@ png_dep = dependency(is_msvc_like ? 'png' : 'libpng',
tiff_dep = dependency(is_msvc_like ? 'tiff' : 'libtiff-4',
fallback: ['libtiff', 'libtiff4_dep'],
required: true)
jpeg_dep = dependency('libjpeg',
jpeg_dep = dependency(is_msvc_like ? 'jpeg' : 'libjpeg',
fallback: ['libjpeg-turbo', 'jpeg_dep'],
required: true)