2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/ext/srtp/meson.build b/subprojects/gst-plugins-bad/ext/srtp/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
index d15d58c..0a3b1a2 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/ext/srtp/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/ext/srtp/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
@@ -6,6 +6,8 @@ srtp_sources = [
|
2022-11-29 04:09:25 +08:00
|
|
|
'gstsrtpenc.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
+gst_plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
|
|
|
|
+
|
|
|
|
srtp_cargs = []
|
2024-09-17 03:26:09 +08:00
|
|
|
srtp_option = get_option('srtp').enable_if(get_option('webrtc').enabled(), error_message: 'webrtc option is enabled')
|
|
|
|
if srtp_option.disabled()
|
|
|
|
@@ -13,7 +15,7 @@ if srtp_option.disabled()
|
2022-11-29 04:09:25 +08:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2024-09-17 03:26:09 +08:00
|
|
|
-srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false, allow_fallback: true)
|
2022-11-29 04:09:25 +08:00
|
|
|
+srtp_dep = dependency('libSRTP', modules: ['libSRTP::srtp2'], version : '>= 2.1.0', required : false)
|
|
|
|
if srtp_dep.found()
|
|
|
|
srtp_cargs += ['-DHAVE_SRTP2']
|
|
|
|
else
|
2024-09-17 03:26:09 +08:00
|
|
|
@@ -39,7 +41,7 @@ if srtp_dep.found()
|
2022-11-29 04:09:25 +08:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstrtp_dep, gstvideo_dep, srtp_dep],
|
|
|
|
install : true,
|
|
|
|
- install_dir : plugins_install_dir,
|
|
|
|
+ install_dir : gst_plugins_install_dir,
|
|
|
|
)
|
|
|
|
plugins += [gstsrtp]
|
2023-09-21 01:19:20 +08:00
|
|
|
endif
|