2017-01-31 09:56:59 +00:00
|
|
|
webrtc_sources = [
|
|
|
|
'gstwebrtc.c',
|
|
|
|
'gstwebrtcice.c',
|
|
|
|
'gstwebrtcstats.c',
|
|
|
|
'icestream.c',
|
|
|
|
'nicetransport.c',
|
|
|
|
'gstwebrtcbin.c',
|
|
|
|
'transportreceivebin.c',
|
|
|
|
'transportsendbin.c',
|
|
|
|
'transportstream.c',
|
|
|
|
'utils.c',
|
|
|
|
'webrtcsdp.c',
|
|
|
|
'webrtctransceiver.c',
|
|
|
|
]
|
|
|
|
|
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()
|
|
|
|
library('gstwebrtc',
|
|
|
|
webrtc_sources,
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [libnice_dep, gstbase_dep, gstsdp_dep, gstwebrtc_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
endif
|