1 project('gst-examples', 'c', version : '1.19.0.1', license : 'LGPL')
3 cc = meson.get_compiler('c')
4 m_dep = cc.find_library('m', required : false)
6 if cc.get_id() == 'msvc'
8 cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
12 gst_version = meson.project_version()
13 version_arr = gst_version.split('.')
15 gst_version_major = version_arr[0].to_int()
16 gst_version_minor = version_arr[1].to_int()
18 gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
20 glib_dep = dependency('glib-2.0', version: '>= 2.38',
21 fallback: ['glib', 'libglib_dep'])
22 gio_dep = dependency('gio-2.0',
23 fallback: ['glib', 'libgio_dep'])
24 gobject_dep = dependency('gobject-2.0', version: '>= 2.38',
25 fallback: ['glib', 'libgobject_dep'])
26 gmodule_dep = dependency('gmodule-2.0',
27 fallback: ['glib', 'libgmodule_dep'])
29 gst_dep = dependency('gstreamer-1.0', version: gst_req,
30 fallback : ['gstreamer', 'gst_dep'])
31 gstplay_dep = dependency('gstreamer-play-1.0', version: gst_req,
32 fallback: ['gst-plugins-bad', 'gstplay_dep'])
33 gsttag_dep = dependency('gstreamer-tag-1.0', version: gst_req,
34 fallback: ['gst-plugins-base', 'tag_dep'])
35 gstwebrtc_dep = dependency('gstreamer-webrtc-1.0', version: gst_req,
36 fallback: ['gst-plugins-bad', 'gstwebrtc_dep'])
37 gstsdp_dep = dependency('gstreamer-sdp-1.0', version : gst_req,
38 fallback : ['gst-plugins-base', 'sdp_dep'])
39 gstrtp_dep = dependency('gstreamer-rtp-1.0', version : gst_req,
40 fallback : ['gst-plugins-base', 'rtp_dep'])