2017-01-31 09:56:59 +00:00
|
|
|
webrtc_sources = [
|
|
|
|
'gstwebrtc.c',
|
|
|
|
'gstwebrtcice.c',
|
|
|
|
'gstwebrtcstats.c',
|
|
|
|
'icestream.c',
|
|
|
|
'nicetransport.c',
|
2018-09-10 13:52:05 +00:00
|
|
|
'sctptransport.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
|
|
|
]
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
libnice_dep = dependency('nice', version : '>=0.1.14', 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],
|
2018-12-05 14:28:44 +00:00
|
|
|
dependencies : [gio_dep, libnice_dep, gstbase_dep, gstsdp_dep,
|
|
|
|
gstapp_dep, gstwebrtc_dep, gstsctp_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)
|
2017-01-31 09:56:59 +00:00
|
|
|
endif
|