2023-01-23 23:04:53 +00:00
|
|
|
project('gst-examples', 'c', version : '1.23.0.1', license : 'LGPL')
|
2019-06-11 05:35:53 +00:00
|
|
|
|
2023-03-07 13:05:54 +00:00
|
|
|
static_build = get_option('default_library') == 'static'
|
2019-06-11 05:35:53 +00:00
|
|
|
cc = meson.get_compiler('c')
|
2019-09-10 07:25:53 +00:00
|
|
|
m_dep = cc.find_library('m', required : false)
|
2019-06-11 05:35:53 +00:00
|
|
|
|
2020-06-18 15:31:02 +00:00
|
|
|
if cc.get_id() == 'msvc'
|
|
|
|
add_project_arguments(
|
|
|
|
cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
|
|
|
|
language : 'c')
|
|
|
|
endif
|
|
|
|
|
2022-04-04 08:12:20 +00:00
|
|
|
host_system = host_machine.system()
|
|
|
|
|
2021-05-24 15:32:24 +00:00
|
|
|
gst_version = meson.project_version()
|
|
|
|
version_arr = gst_version.split('.')
|
|
|
|
|
|
|
|
gst_version_major = version_arr[0].to_int()
|
|
|
|
gst_version_minor = version_arr[1].to_int()
|
|
|
|
|
|
|
|
gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
|
|
|
|
|
2022-03-25 19:00:20 +00:00
|
|
|
gio_dep = dependency('gio-2.0')
|
2019-06-11 05:35:53 +00:00
|
|
|
|
2021-05-24 15:32:24 +00:00
|
|
|
gst_dep = dependency('gstreamer-1.0', version: gst_req,
|
2019-06-11 05:35:53 +00:00
|
|
|
fallback : ['gstreamer', 'gst_dep'])
|
2021-05-24 15:32:24 +00:00
|
|
|
gstplay_dep = dependency('gstreamer-play-1.0', version: gst_req,
|
2020-11-14 11:01:01 +00:00
|
|
|
fallback: ['gst-plugins-bad', 'gstplay_dep'])
|
2021-05-24 15:32:24 +00:00
|
|
|
gsttag_dep = dependency('gstreamer-tag-1.0', version: gst_req,
|
2019-06-11 05:35:53 +00:00
|
|
|
fallback: ['gst-plugins-base', 'tag_dep'])
|
2021-05-24 15:32:24 +00:00
|
|
|
gstwebrtc_dep = dependency('gstreamer-webrtc-1.0', version: gst_req,
|
2020-06-18 15:31:02 +00:00
|
|
|
fallback: ['gst-plugins-bad', 'gstwebrtc_dep'])
|
2021-05-24 15:32:24 +00:00
|
|
|
gstsdp_dep = dependency('gstreamer-sdp-1.0', version : gst_req,
|
|
|
|
fallback : ['gst-plugins-base', 'sdp_dep'])
|
|
|
|
gstrtp_dep = dependency('gstreamer-rtp-1.0', version : gst_req,
|
|
|
|
fallback : ['gst-plugins-base', 'rtp_dep'])
|
2019-06-11 05:35:53 +00:00
|
|
|
|
2023-03-07 13:05:54 +00:00
|
|
|
if static_build
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2016-08-26 16:02:24 +00:00
|
|
|
subdir('playback')
|
|
|
|
subdir('network')
|
2020-06-18 15:31:02 +00:00
|
|
|
subdir('webrtc')
|