From 48474d3cf77f91702cc2219ea17ceed881c372ae Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Tue, 30 Jun 2020 11:15:43 -0700 Subject: tests: skip cc tests if plugin is disabled Skip the closedcaption element tests if the closedcaption option is disabled at compile time (i.e. -Dclosedcaption=disabled). v2: rename pangocairo_dep to avoid conflict with later definition in ext/ttml/meson.build as suggested by @tpm. Part-of: --- ext/closedcaption/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/closedcaption/meson.build b/ext/closedcaption/meson.build index 9a4c7a0b2..cb0585f0e 100644 --- a/ext/closedcaption/meson.build +++ b/ext/closedcaption/meson.build @@ -1,4 +1,4 @@ -pangocairo_dep = dependency('pangocairo', version : '>= 1.22.0', +closedcaption_dep = dependency('pangocairo', version : '>= 1.22.0', required : get_option('closedcaption')) zvbi_sources = [ @@ -9,7 +9,7 @@ zvbi_sources = [ 'io-sim.c', ] -if pangocairo_dep.found() +if closedcaption_dep.found() gstclosedcaption = library('gstclosedcaption', 'gstcccombiner.c', 'gstccextractor.c', 'gstccconverter.c', 'gstclosedcaption.c', 'gstline21dec.c', 'gstcea708decoder.c', 'gstceaccoverlay.c', 'gstline21enc.c', @@ -17,7 +17,7 @@ if pangocairo_dep.found() c_args : gst_plugins_bad_args, link_args : noseh_link_args, include_directories : [configinc], - dependencies : [gstvideo_dep, gstbase_dep, gst_dep, pangocairo_dep, libm], + dependencies : [gstvideo_dep, gstbase_dep, gst_dep, closedcaption_dep, libm], install : true, install_dir : plugins_install_dir, ) -- cgit v1.2.1