meson: Add a wrap file for libsrt2p

And allow fallback to it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3708>
This commit is contained in:
Nirbheek Chauhan 2023-01-14 12:29:03 +05:30 committed by GStreamer Marge Bot
parent b3fb3c3f30
commit cc3078d819
2 changed files with 9 additions and 1 deletions

View file

@ -12,7 +12,7 @@ if get_option('srtp').disabled()
subdir_done() subdir_done()
endif endif
srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false) srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false, allow_fallback: true)
if srtp_dep.found() if srtp_dep.found()
srtp_cargs += ['-DHAVE_SRTP2'] srtp_cargs += ['-DHAVE_SRTP2']
else else

View file

@ -0,0 +1,8 @@
[wrap-git]
directory = libsrtp
url = https://github.com/cisco/libsrtp.git
revision = b1f3b8b2db4386cae0778d80f507d6d75f56ad4f
depth = 1
[provide]
libsrtp2 = libsrtp2_dep