2021-09-18 23:55:34 +00:00
|
|
|
mplex_opt = get_option('mplex').require(gpl_allowed, error_message: '''
|
|
|
|
Plugin mplex explicitly required via options but GPL-licensed plugins disabled via options.
|
|
|
|
Pass option -Dgpl=enabled to Meson to allow GPL-licensed plugins to be built.
|
|
|
|
''')
|
|
|
|
|
|
|
|
# See: ext/mplex for note about mjpegtools dep
|
|
|
|
mjpegtools_dep = dependency('mjpegtools', version : '>=2.0.0', required : mplex_opt)
|
|
|
|
mplex2_dep = cxx.find_library('mplex2', required : mplex_opt)
|
2017-03-22 21:18:10 +00:00
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if mjpegtools_dep.found() and mplex2_dep.found()
|
|
|
|
gstmplex2 = library('gstmplex',
|
|
|
|
'gstmplex.cc',
|
|
|
|
'gstmplexibitstream.cc',
|
|
|
|
'gstmplexjob.cc',
|
|
|
|
'gstmplexoutputstream.cc',
|
2018-07-28 02:36:40 +00:00
|
|
|
cpp_args : gst_plugins_bad_args + ['-DGST_MJPEGTOOLS_API=20000'],
|
2018-07-27 13:29:23 +00:00
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies : [gstaudio_dep, mjpegtools_dep, mplex2_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstmplex2, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstmplex2]
|
2017-03-22 21:18:10 +00:00
|
|
|
endif
|