1# See: ext/mpeg2enc for note about mjpegtools dep 2mjpegtools_dep = dependency('mjpegtools', version : '>=2.0.0', required : get_option('mplex')) 3mplex2_dep = cxx.find_library('mplex2', required : get_option('mplex')) 4 5if mjpegtools_dep.found() and mplex2_dep.found() 6 gstmplex2 = library('gstmplex', 7 'gstmplex.cc', 8 'gstmplexibitstream.cc', 9 'gstmplexjob.cc', 10 'gstmplexoutputstream.cc', 11 cpp_args : gst_plugins_bad_args + ['-DGST_MJPEGTOOLS_API=20000'], 12 link_args : noseh_link_args, 13 include_directories : [configinc, libsinc], 14 dependencies : [gstaudio_dep, mjpegtools_dep, mplex2_dep], 15 install : true, 16 install_dir : plugins_install_dir, 17 ) 18 pkgconfig.generate(gstmplex2, install_dir : plugins_pkgconfig_install_dir) 19endif 20