gstreamer/ext/srt/meson.build
Nirbheek Chauhan b55dfb5313 Add feature options for almost all plugins
The only plugins remaining are those that haven't been ported to Meson
yet, and msdk. Also, the tests are still automagic.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 19:04:38 +05:30

34 lines
917 B
Meson

srt_sources = [
'gstsrt.c',
'gstsrtbasesrc.c',
'gstsrtclientsrc.c',
'gstsrtserversrc.c',
'gstsrtbasesink.c',
'gstsrtclientsink.c',
'gstsrtserversink.c',
]
srt_option = get_option('srt')
if srt_option.disabled()
subdir_done()
endif
srt_dep = dependency('srt', 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 not srt_dep.found() and srt_option.enabled()
error('srt plugin enabled, but srt library not found')
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,
)
pkgconfig.generate(gstsrt, install_dir : plugins_pkgconfig_install_dir)
endif