lib/ffmpeg/meson.build: detect libavfilter
This commit is contained in:
parent
42a05bc904
commit
e864a0dd05
|
@ -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,
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue