mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Add meson build script
make build easy with meson
This commit is contained in:
parent
62469f1155
commit
60dbf27896
5 changed files with 36 additions and 0 deletions
28
webrtc/meson.build
Normal file
28
webrtc/meson.build
Normal file
|
@ -0,0 +1,28 @@
|
|||
project('gstwebrtc-demo', 'c',
|
||||
meson_version : '>= 0.48',
|
||||
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'])
|
||||
|
||||
subdir('multiparty-sendrecv')
|
||||
subdir('sendrecv')
|
3
webrtc/multiparty-sendrecv/gst/meson.build
Normal file
3
webrtc/multiparty-sendrecv/gst/meson.build
Normal file
|
@ -0,0 +1,3 @@
|
|||
executable('mp-webrtc-sendrecv',
|
||||
'mp-webrtc-sendrecv.c',
|
||||
dependencies : [gst_dep, gstsdp_dep, gstwebrtc_dep, libsoup_dep, json_glib_dep ])
|
1
webrtc/multiparty-sendrecv/meson.build
Normal file
1
webrtc/multiparty-sendrecv/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
subdir('gst')
|
3
webrtc/sendrecv/gst/meson.build
Normal file
3
webrtc/sendrecv/gst/meson.build
Normal file
|
@ -0,0 +1,3 @@
|
|||
executable('webrtc-sendrecv',
|
||||
'webrtc-sendrecv.c',
|
||||
dependencies : [gst_dep, gstsdp_dep, gstwebrtc_dep, libsoup_dep, json_glib_dep ])
|
1
webrtc/sendrecv/meson.build
Normal file
1
webrtc/sendrecv/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
subdir('gst')
|
Loading…
Reference in a new issue