mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
e3e98da727
... and skip if it's disabled. Fixes #1344 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2797>
32 lines
922 B
Meson
32 lines
922 B
Meson
webrtc_sources = [
|
|
'gstwebrtc.c',
|
|
'gstwebrtcstats.c',
|
|
'webrtcsctptransport.c',
|
|
'gstwebrtcbin.c',
|
|
'transportreceivebin.c',
|
|
'transportsendbin.c',
|
|
'transportstream.c',
|
|
'utils.c',
|
|
'webrtcsdp.c',
|
|
'webrtctransceiver.c',
|
|
'webrtcdatachannel.c',
|
|
]
|
|
|
|
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,
|
|
)
|
|
pkgconfig.generate(gstwebrtc_plugin, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstwebrtc_plugin]
|
|
|