jpeg: Add support for meson fallback

Allow building jpeg plugin by using meson fallback

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1041>
This commit is contained in:
Seungha Yang 2021-07-31 23:14:34 +09:00
parent 6858c8222c
commit db7d14db5a

View file

@ -5,7 +5,8 @@ jpeg_sources = [
'gstjpegdec.c', 'gstjpegdec.c',
] ]
jpeglib = dependency('libjpeg', required : get_option('jpeg')) jpeglib = dependency('libjpeg', required : get_option('jpeg'),
fallback: ['libjpeg-turbo', 'jpeg_dep'])
if jpeglib.found() if jpeglib.found()
gstjpeg = library('gstjpeg', gstjpeg = library('gstjpeg',