mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
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:
parent
6eda5deeff
commit
2e34d62111
@ -422,7 +422,7 @@ png_dep = dependency(is_msvc_like ? 'png' : 'libpng',
|
|||||||
tiff_dep = dependency(is_msvc_like ? 'tiff' : 'libtiff-4',
|
tiff_dep = dependency(is_msvc_like ? 'tiff' : 'libtiff-4',
|
||||||
fallback: ['libtiff', 'libtiff4_dep'],
|
fallback: ['libtiff', 'libtiff4_dep'],
|
||||||
required: true)
|
required: true)
|
||||||
jpeg_dep = dependency('libjpeg',
|
jpeg_dep = dependency(is_msvc_like ? 'jpeg' : 'libjpeg',
|
||||||
fallback: ['libjpeg-turbo', 'jpeg_dep'],
|
fallback: ['libjpeg-turbo', 'jpeg_dep'],
|
||||||
required: true)
|
required: true)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user