meson: add libopenjp2 fallback for openjpeg

As a wrap is now available in gst-build, the fallback
can be used.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1270>
This commit is contained in:
Stéphane Cerveau 2020-05-14 17:13:00 +02:00 committed by GStreamer Merge Bot
parent a754c67c05
commit 3f16353d64

View file

@ -10,7 +10,9 @@ if get_option('openjpeg').disabled()
subdir_done()
endif
openjpeg_dep = dependency('libopenjp2', version : '>=2.2', required : get_option('openjpeg'))
openjpeg_dep = dependency('libopenjp2', version : '>=2.2',
fallback : ['libopenjp2', 'libopenjp2_dep'],
required : get_option('openjpeg'))
if openjpeg_dep.found()
gstopenjpeg = library('gstopenjpeg',