diff options
Diffstat (limited to 'ext/srt/meson.build')
-rw-r--r-- | ext/srt/meson.build | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/srt/meson.build b/ext/srt/meson.build new file mode 100644 index 000000000..0d2835fb7 --- /dev/null +++ b/ext/srt/meson.build @@ -0,0 +1,27 @@ +srt_sources = [ + 'gstsrt.c', + 'gstsrtbasesrc.c', + 'gstsrtclientsrc.c', + 'gstsrtserversrc.c', + 'gstsrtbasesink.c', + 'gstsrtclientsink.c', + 'gstsrtserversink.c', +] + +srt_dep = dependency('libsrt', required : false) + +if not srt_dep.found() and cc.has_header_symbol('srt/srt.h', 'srt_startup') + srt_dep = cc.find_library('srt', required : false) +endif + +if srt_dep.found() + gstsrt = library('gstsrt', + srt_sources, + c_args : gst_plugins_bad_args, + link_args : noseh_link_args, + include_directories : [configinc, libsinc], + dependencies : [gstbase_dep, gio_dep, srt_dep], + install : true, + install_dir : plugins_install_dir, + ) +endif |