Commit e864a0dd authored by Max Kellermann's avatar Max Kellermann

lib/ffmpeg/meson.build: detect libavfilter

parent 42a05bc9
......@@ -4,6 +4,14 @@ libavutil_dep = dependency('libavutil', version: '>= 55.27', required: get_optio
enable_ffmpeg = libavformat_dep.found() and libavcodec_dep.found() and libavutil_dep.found()
conf.set('ENABLE_FFMPEG', enable_ffmpeg)
if enable_ffmpeg
libavfilter_dep = dependency('libavfilter', required: false)
else
libavfilter_dep = dependency('', required: false)
endif
conf.set('HAVE_LIBAVFILTER', libavfilter_dep.found())
if not enable_ffmpeg
ffmpeg_dep = dependency('', required: false)
subdir_done()
......@@ -20,6 +28,7 @@ ffmpeg = static_library(
dependencies: [
libavformat_dep,
libavcodec_dep,
libavfilter_dep,
libavutil_dep,
],
)
......@@ -29,6 +38,7 @@ ffmpeg_dep = declare_dependency(
dependencies: [
libavformat_dep,
libavcodec_dep,
libavfilter_dep,
libavutil_dep,
],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment