meson: add 'curl-ssh2' option for curl libssh2 support

https://bugzilla.gnome.org/show_bug.cgi?id=797346
This commit is contained in:
Tim-Philipp Müller 2018-10-28 11:53:42 +00:00
parent 8dfe0dd9ce
commit a4cfb1fa14
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@ curl_sources = [
curl_dep = dependency('libcurl', version : '>= 7.35.0', required : get_option('curl'))
if curl_dep.found()
ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : false)
ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : get_option('curl-ssh2'))
cdata.set('HAVE_SSH2', ssh_dep.found())
gstcurl = library('gstcurl',

View file

@ -83,6 +83,7 @@ option('bz2', type : 'feature', value : 'auto', description : 'bz2 stream encode
option('chromaprint', type : 'feature', value : 'auto', description : 'Chromaprint fingerprint audio plugin')
option('closedcaption', type : 'feature', value : 'auto', description : 'Closed caption extractor, decoder, and overlay plugin')
option('curl', type : 'feature', value : 'auto', description : 'cURL network source and sink plugin')
option('curl-ssh2', type : 'feature', value : 'auto', description : 'cURL network source and sink plugin libssh2 support')
option('d3dvideosink', type : 'feature', value : 'auto', description : 'Direct3D video sink plugin')
option('dash', type : 'feature', value : 'auto', description : 'DASH demuxer plugin')
option('decklink', type : 'feature', value : 'auto', description : 'DeckLink audio/video source/sink plugin')