mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
vpx: avoid confusing meson configure output when checking for vpx versions
Used to print: |Run-time dependency vpx found: YES 1.7.0 |Message: libvpx provides VP8 encoder interface (vpx_codec_vp8_cx_algo) |Message: libvpx provides VP8 decoder interface (vpx_codec_vp8_dx_algo) |Message: libvpx provides VP9 encoder interface (vpx_codec_vp9_cx_algo) |Message: libvpx provides VP9 decoder interface (vpx_codec_vp9_dx_algo) |Dependency vpx found: YES (cached) |Dependency vpx found: NO found '1.7.0' but need: '>=1.8.0' |Run-time dependency vpx found: NO (tried pkgconfig and cmake) We can check the version of the found dep in a way that doesn't produce this confusing output.
This commit is contained in:
parent
cbe61c4ff5
commit
e40ba71824
1 changed files with 4 additions and 2 deletions
|
@ -44,11 +44,13 @@ if vpx_dep.found()
|
||||||
message('WARNING: libvpx was built without any encoder or decoder features!')
|
message('WARNING: libvpx was built without any encoder or decoder features!')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if dependency('vpx', version : '>=1.4.0', required : false).found()
|
if vpx_dep.version().version_compare('>= 1.4.0')
|
||||||
|
message('Found vpx >= 1.4.0')
|
||||||
vpx_args += '-DHAVE_VPX_1_4'
|
vpx_args += '-DHAVE_VPX_1_4'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if dependency('vpx', version : '>=1.8.0', required : false).found()
|
if vpx_dep.version().version_compare('>= 1.8.0')
|
||||||
|
message('Found vpx >= 1.8.0')
|
||||||
vpx_args += '-DHAVE_VPX_1_8'
|
vpx_args += '-DHAVE_VPX_1_8'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue