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()
|
enable_ffmpeg = libavformat_dep.found() and libavcodec_dep.found() and libavutil_dep.found()
|
||||||
conf.set('ENABLE_FFMPEG', enable_ffmpeg)
|
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
|
if not enable_ffmpeg
|
||||||
ffmpeg_dep = dependency('', required: false)
|
ffmpeg_dep = dependency('', required: false)
|
||||||
subdir_done()
|
subdir_done()
|
||||||
|
@ -20,6 +28,7 @@ ffmpeg = static_library(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
libavformat_dep,
|
libavformat_dep,
|
||||||
libavcodec_dep,
|
libavcodec_dep,
|
||||||
|
libavfilter_dep,
|
||||||
libavutil_dep,
|
libavutil_dep,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -29,6 +38,7 @@ ffmpeg_dep = declare_dependency(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
libavformat_dep,
|
libavformat_dep,
|
||||||
libavcodec_dep,
|
libavcodec_dep,
|
||||||
|
libavfilter_dep,
|
||||||
libavutil_dep,
|
libavutil_dep,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue