2017-01-31 09:56:59 +00:00
|
|
|
webrtc_sources = [
|
|
|
|
'gstwebrtc.c',
|
|
|
|
'gstwebrtcice.c',
|
|
|
|
'gstwebrtcstats.c',
|
|
|
|
'icestream.c',
|
|
|
|
'nicetransport.c',
|
2021-05-07 06:12:25 +00:00
|
|
|
'webrtcsctptransport.c',
|
2017-01-31 09:56:59 +00:00
|
|
|
'gstwebrtcbin.c',
|
|
|
|
'transportreceivebin.c',
|
|
|
|
'transportsendbin.c',
|
|
|
|
'transportstream.c',
|
|
|
|
'utils.c',
|
|
|
|
'webrtcsdp.c',
|
|
|
|
'webrtctransceiver.c',
|
2018-09-10 13:52:05 +00:00
|
|
|
'webrtcdatachannel.c',
|
2017-01-31 09:56:59 +00:00
|
|
|
]
|
|
|
|
|
2020-11-11 11:39:37 +00:00
|
|
|
libnice_dep = dependency('nice', version : '>=0.1.17', required : get_option('webrtc'),
|
2018-05-19 11:24:40 +00:00
|
|
|
fallback : ['libnice', 'libnice_dep'],
|
2018-11-02 20:16:56 +00:00
|
|
|
default_options: ['tests=disabled'])
|
2017-01-31 09:56:59 +00:00
|
|
|
|
|
|
|
if libnice_dep.found()
|
2018-08-31 07:19:02 +00:00
|
|
|
gstwebrtc_plugin = library('gstwebrtc',
|
2017-01-31 09:56:59 +00:00
|
|
|
webrtc_sources,
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc],
|
2022-03-25 19:00:20 +00:00
|
|
|
dependencies : [gstbase_dep, gstsdp_dep,
|
|
|
|
gstapp_dep, gstwebrtc_dep, gstsctp_dep, gstrtp_dep, libnice_dep, gio_dep],
|
2017-01-31 09:56:59 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-08-31 07:19:02 +00:00
|
|
|
pkgconfig.generate(gstwebrtc_plugin, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstwebrtc_plugin]
|
2017-01-31 09:56:59 +00:00
|
|
|
endif
|