%{_libdir}/libgstwayland-%{gst_branch}.so.0*
%endif
%{_libdir}/libgstwebrtc-%{gst_branch}.so.0*
+%{_libdir}/libgstwebrtcnice-%{gst_branch}.so.0*
%exclude %{_bindir}/gst-transcoder-%{gst_branch}
%exclude %{_libdir}/debug/*
%{_libdir}/pkgconfig/gstreamer-wayland-%{gst_branch}.pc
%endif
%{_libdir}/pkgconfig/gstreamer-webrtc-%{gst_branch}.pc
+%{_libdir}/pkgconfig/gstreamer-webrtc-nice-%{gst_branch}.pc
%endif # plugin
'webrtcdatachannel.c',
]
-libnice_dep = dependency('nice', version : '>=0.1.17', required : get_option('webrtc'),
- fallback : ['libnice', 'libnice_dep'],
- default_options: ['tests=disabled'])
-
-if libnice_dep.found()
- gstwebrtc_plugin = library('gstwebrtc',
- webrtc_sources,
- c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
- include_directories : [configinc],
- dependencies : [gio_dep, libnice_dep, gstbase_dep, gstsdp_dep,
- gstapp_dep, gstwebrtc_dep, gstsctp_dep, gstrtp_dep],
- install : true,
- install_dir : plugins_install_dir,
- )
- pkgconfig.generate(gstwebrtc_plugin, install_dir : plugins_pkgconfig_install_dir)
- plugins += [gstwebrtc_plugin]
+webrtc_option = get_option('webrtc').require(
+ libgstwebrtcnice_dep.found(), error_message: 'webrtc plugin requires libgstwebrtcnice.')
+if webrtc_option.disabled()
+ subdir_done()
endif
+
+gstwebrtc_plugin = library('gstwebrtc',
+ webrtc_sources,
+ c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
+ include_directories : [configinc],
+ dependencies : [gstbase_dep, gstsdp_dep,
+ gstapp_dep, gstwebrtc_dep, gstsctp_dep, gstrtp_dep, gio_dep, libgstwebrtcnice_dep],
+ install : true,
+ install_dir : plugins_install_dir,
+)
+plugins += [gstwebrtc_plugin]
+