mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
b004464ac6
They are part of gst_dep already and we have to make sure to always have gst_dep. The order in dependencies matters, because it is also the order in which Meson will set -I args. We want gstreamer's config.h to take precedence over glib's private config.h when it's a subproject. While at it, remove useless fallback args for gmodule/gio dependencies, only gstreamer core needs it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2031>
34 lines
1 KiB
Meson
34 lines
1 KiB
Meson
webrtc_sources = [
|
|
'gstwebrtc.c',
|
|
'gstwebrtcice.c',
|
|
'gstwebrtcstats.c',
|
|
'icestream.c',
|
|
'nicetransport.c',
|
|
'webrtcsctptransport.c',
|
|
'gstwebrtcbin.c',
|
|
'transportreceivebin.c',
|
|
'transportsendbin.c',
|
|
'transportstream.c',
|
|
'utils.c',
|
|
'webrtcsdp.c',
|
|
'webrtctransceiver.c',
|
|
'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 : [gstbase_dep, gstsdp_dep,
|
|
gstapp_dep, gstwebrtc_dep, gstsctp_dep, gstrtp_dep, libnice_dep, gio_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstwebrtc_plugin, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstwebrtc_plugin]
|
|
endif
|