X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Fvpx%2Fmeson.build;h=27acdf4abf1d552a0d65afa4d233489109668d6f;hb=093f8a12c9b33f498e487eb1a2a55d70cafb7b43;hp=0d2340b322ceb33988fb67b37b1994ee57de2eb3;hpb=54c1aa8db647bda90b4794a51e3510d02b338bc0;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/ext/vpx/meson.build b/ext/vpx/meson.build index 0d2340b..27acdf4 100644 --- a/ext/vpx/meson.build +++ b/ext/vpx/meson.build @@ -16,7 +16,8 @@ vpx_features = [ [ 'vpx/vp8dx.h', 'vpx_codec_vp9_dx_algo', '-DHAVE_VP9_DECODER', 'VP9 decoder' ], ] -vpx_dep = dependency('vpx', version : '>=1.3.0', required : get_option('vpx')) +vpx_option = get_option('vpx') +vpx_dep = dependency('vpx', version : '>=1.3.0', required : vpx_option) if vpx_dep.found() vpx_args = [] @@ -41,7 +42,13 @@ if vpx_dep.found() endforeach if vpx_args.length() == 0 - message('WARNING: libvpx was built without any encoder or decoder features!') + msg = 'libvpx was built without any encoder or decoder features!' + # Error out if explicitly enabled, but continue with a warning if the + # plugin is in auto-detect mode to reduce build-time friction. + if vpx_option.enabled() + error(msg) + endif + warning(msg) endif if dependency('vpx', version : '>=1.4.0', required : false).found()