mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1388>
This commit is contained in:
parent
162026961b
commit
48474d3cf7
2 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -29,9 +29,9 @@ base_tests = [
|
|||
[['elements/autovideoconvert.c']],
|
||||
[['elements/avwait.c']],
|
||||
[['elements/camerabin.c']],
|
||||
[['elements/ccconverter.c'], not pangocairo_dep.found(), [gstvideo_dep]],
|
||||
[['elements/cccombiner.c'], not pangocairo_dep.found(), ],
|
||||
[['elements/ccextractor.c'], not pangocairo_dep.found(), ],
|
||||
[['elements/ccconverter.c'], not closedcaption_dep.found(), [gstvideo_dep]],
|
||||
[['elements/cccombiner.c'], not closedcaption_dep.found(), ],
|
||||
[['elements/ccextractor.c'], not closedcaption_dep.found(), ],
|
||||
[['elements/cudaconvert.c'], false, [gmodule_dep, gstgl_dep]],
|
||||
[['elements/cudafilter.c'], false, [gmodule_dep, gstgl_dep]],
|
||||
[['elements/d3d11colorconvert.c'], host_machine.system() != 'windows', ],
|
||||
|
@ -44,7 +44,7 @@ base_tests = [
|
|||
[['elements/id3mux.c']],
|
||||
[['elements/interlace.c']],
|
||||
[['elements/jpeg2000parse.c'], false, [libparser_dep, gstcodecparsers_dep]],
|
||||
[['elements/line21.c'], not pangocairo_dep.found(), ],
|
||||
[['elements/line21.c'], not closedcaption_dep.found(), ],
|
||||
[['elements/mfvideosrc.c'], host_machine.system() != 'windows', ],
|
||||
[['elements/mpegtsdemux.c'], false, [gstmpegts_dep]],
|
||||
[['elements/mpegtsmux.c'], false, [gstmpegts_dep]],
|
||||
|
|
Loading…
Reference in a new issue