2016-08-12 15:51:45 +00:00
|
|
|
curl_sources = [
|
|
|
|
'gstcurlbasesink.c',
|
|
|
|
'gstcurl.c',
|
|
|
|
'gstcurlfilesink.c',
|
|
|
|
'gstcurlftpsink.c',
|
|
|
|
'gstcurlhttpsink.c',
|
|
|
|
'gstcurlsftpsink.c',
|
|
|
|
'gstcurlsmtpsink.c',
|
|
|
|
'gstcurlsshsink.c',
|
|
|
|
'gstcurltlssink.c',
|
2017-07-25 14:23:57 +00:00
|
|
|
'gstcurlhttpsrc.c',
|
|
|
|
'gstcurlqueue.c',
|
2016-08-12 15:51:45 +00:00
|
|
|
]
|
|
|
|
|
2018-10-28 10:47:38 +00:00
|
|
|
curl_dep = dependency('libcurl', version : '>= 7.35.0', required : get_option('curl'))
|
2016-08-12 15:51:45 +00:00
|
|
|
|
|
|
|
if curl_dep.found()
|
2018-10-28 11:53:42 +00:00
|
|
|
ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : get_option('curl-ssh2'))
|
2018-01-22 18:53:22 +00:00
|
|
|
cdata.set('HAVE_SSH2', ssh_dep.found())
|
|
|
|
|
2016-08-12 15:51:45 +00:00
|
|
|
gstcurl = library('gstcurl',
|
|
|
|
curl_sources,
|
|
|
|
c_args : gst_plugins_bad_args,
|
2017-11-21 19:56:38 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
2016-08-12 15:51:45 +00:00
|
|
|
dependencies : [gstbase_dep, curl_dep] + winsock2,
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstcurl, install_dir : plugins_pkgconfig_install_dir)
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|