2017-07-31 05:38:34 +00:00
|
|
|
srt_sources = [
|
|
|
|
'gstsrt.c',
|
|
|
|
'gstsrtbasesrc.c',
|
|
|
|
'gstsrtclientsrc.c',
|
|
|
|
'gstsrtserversrc.c',
|
|
|
|
'gstsrtbasesink.c',
|
|
|
|
'gstsrtclientsink.c',
|
|
|
|
'gstsrtserversink.c',
|
|
|
|
]
|
2018-07-27 13:29:23 +00:00
|
|
|
srt_option = get_option('srt')
|
|
|
|
if srt_option.disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
2017-07-31 05:38:34 +00:00
|
|
|
|
2018-02-19 19:52:30 +00:00
|
|
|
srt_dep = dependency('srt', required : false)
|
2017-07-31 05:38:34 +00:00
|
|
|
if not srt_dep.found() and cc.has_header_symbol('srt/srt.h', 'srt_startup')
|
|
|
|
srt_dep = cc.find_library('srt', required : false)
|
|
|
|
endif
|
2018-07-27 13:29:23 +00:00
|
|
|
if not srt_dep.found() and srt_option.enabled()
|
|
|
|
error('srt plugin enabled, but srt library not found')
|
|
|
|
endif
|
2017-07-31 05:38:34 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstsrt, install_dir : plugins_pkgconfig_install_dir)
|
2017-07-31 05:38:34 +00:00
|
|
|
endif
|