1 project('gst-examples', 'c', version : '1.21.3.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 host_system = host_machine.system()
14 gst_version = meson.project_version()
15 version_arr = gst_version.split('.')
17 gst_version_major = version_arr[0].to_int()
18 gst_version_minor = version_arr[1].to_int()
20 gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
22 gio_dep = dependency('gio-2.0')
24 gst_dep = dependency('gstreamer-1.0', version: gst_req,
25 fallback : ['gstreamer', 'gst_dep'])
26 gstplay_dep = dependency('gstreamer-play-1.0', version: gst_req,
27 fallback: ['gst-plugins-bad', 'gstplay_dep'])
28 gsttag_dep = dependency('gstreamer-tag-1.0', version: gst_req,
29 fallback: ['gst-plugins-base', 'tag_dep'])
30 gstwebrtc_dep = dependency('gstreamer-webrtc-1.0', version: gst_req,
31 fallback: ['gst-plugins-bad', 'gstwebrtc_dep'])
32 gstsdp_dep = dependency('gstreamer-sdp-1.0', version : gst_req,
33 fallback : ['gst-plugins-base', 'sdp_dep'])
34 gstrtp_dep = dependency('gstreamer-rtp-1.0', version : gst_req,
35 fallback : ['gst-plugins-base', 'rtp_dep'])