diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-03-23 02:48:10 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-03-23 02:48:39 +0530 |
commit | ddcd7735b673a111bc73a3e58853a662d1e6c72e (patch) | |
tree | 856804e57009d05cf403b8b4f85dca160fc69265 /ext/mpeg2enc | |
parent | 40a2deef808b9a34d0a257134bf836962a5a1065 (diff) |
meson: Build mpeg2enc and mplex when available
Diffstat (limited to 'ext/mpeg2enc')
-rw-r--r-- | ext/mpeg2enc/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/mpeg2enc/meson.build b/ext/mpeg2enc/meson.build new file mode 100644 index 000000000..670015bca --- /dev/null +++ b/ext/mpeg2enc/meson.build @@ -0,0 +1,19 @@ +if mjpegtools_dep.found() + mpeg2enc_dep = cxx.find_library('mpeg2encpp', required : false) + + if mpeg2enc_dep.found() + gstmpeg2enc = library('gstmpeg2enc', + 'gstmpeg2enc.cc', + 'gstmpeg2encoptions.cc', + 'gstmpeg2encoder.cc', + 'gstmpeg2encstreamwriter.cc', + 'gstmpeg2encpicturereader.cc', + cpp_args : gst_plugins_bad_args + ['-DGST_MJPEGTOOLS_API=' + mjpegtools_api], + link_args : noseh_link_args, + include_directories : [configinc], + dependencies : [gstvideo_dep, mjpegtools_dep, mpeg2enc_dep], + install : true, + install_dir : plugins_install_dir, + ) + endif +endif |