1mplex_opt = get_option('mplex').require(gpl_allowed, error_message: ''' 2 Plugin mplex explicitly required via options but GPL-licensed plugins disabled via options. 3 Pass option -Dgpl=enabled to Meson to allow GPL-licensed plugins to be built. 4 ''') 5 6# See: ext/mplex for note about mjpegtools dep 7mjpegtools_dep = dependency('mjpegtools', version : '>=2.0.0', required : mplex_opt) 8mplex2_dep = cxx.find_library('mplex2', required : mplex_opt) 9 10if mjpegtools_dep.found() and mplex2_dep.found() 11 gstmplex2 = library('gstmplex', 12 'gstmplex.cc', 13 'gstmplexibitstream.cc', 14 'gstmplexjob.cc', 15 'gstmplexoutputstream.cc', 16 cpp_args : gst_plugins_bad_args + ['-DGST_MJPEGTOOLS_API=20000'], 17 link_args : noseh_link_args, 18 include_directories : [configinc, libsinc], 19 dependencies : [gstaudio_dep, mjpegtools_dep, mplex2_dep], 20 install : true, 21 install_dir : plugins_install_dir, 22 ) 23 pkgconfig.generate(gstmplex2, install_dir : plugins_pkgconfig_install_dir) 24 plugins += [gstmplex2] 25endif 26