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-05-21 13:42:56 +00:00
|
|
|
default_options: ['tests=false'])
|
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-09-10 13:52:05 +00:00
|
|
|
dependencies : [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
|