2019-07-02 09:52:44 +00:00
|
|
|
project('gstwebrtc-demo', 'c',
|
|
|
|
meson_version : '>= 0.48',
|
2018-09-10 08:08:15 +00:00
|
|
|
license: 'BSD-2-Clause',
|
2019-07-02 09:52:44 +00:00
|
|
|
default_options : [ 'warning_level=1',
|
|
|
|
'buildtype=debug' ])
|
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
|
|
|
|
if cc.get_id() == 'msvc'
|
|
|
|
add_project_arguments(
|
|
|
|
cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
|
|
|
|
language : 'c')
|
|
|
|
endif
|
|
|
|
|
|
|
|
gst_req = '>= 1.14.0'
|
|
|
|
gst_dep = dependency('gstreamer-1.0', version : gst_req,
|
|
|
|
fallback : ['gstreamer', 'gst_dep'])
|
|
|
|
gstsdp_dep = dependency('gstreamer-sdp-1.0', version : gst_req,
|
|
|
|
fallback : ['gst-plugins-base', 'sdp_dep'])
|
|
|
|
gstwebrtc_dep = dependency('gstreamer-webrtc-1.0', version : gst_req,
|
|
|
|
fallback : ['gst-plugins-bad', 'gstwebrtc_dep'])
|
|
|
|
|
|
|
|
libsoup_dep = dependency('libsoup-2.4', version : '>=2.48',
|
|
|
|
fallback : ['libsoup', 'libsoup_dep'])
|
|
|
|
json_glib_dep = dependency('json-glib-1.0',
|
|
|
|
fallback : ['json-glib', 'json_glib_dep'])
|
|
|
|
|
2018-09-10 08:08:15 +00:00
|
|
|
|
|
|
|
py3_mod = import('python3')
|
|
|
|
py3 = py3_mod.find_python()
|
|
|
|
|
|
|
|
py3_version = py3_mod.language_version()
|
|
|
|
if py3_version.version_compare('< 3.6')
|
|
|
|
error('Could not find a sufficient python version required: 3.6, found {}'.format(py3_version))
|
|
|
|
endif
|
|
|
|
|
2019-07-02 09:52:44 +00:00
|
|
|
subdir('multiparty-sendrecv')
|
2018-09-10 08:08:15 +00:00
|
|
|
subdir('signalling')
|
2019-07-02 09:52:44 +00:00
|
|
|
subdir('sendrecv')
|
2018-12-17 11:34:10 +00:00
|
|
|
|
|
|
|
subdir('check')
|