2021-09-11 15:17:56 +00:00
|
|
|
gst_tools = {
|
|
|
|
'gst-validate': {
|
|
|
|
'files': files('gst-validate.c'),
|
|
|
|
'deps': [validate_dep, gio_dep],
|
|
|
|
},
|
|
|
|
'gst-validate-media-check': {
|
|
|
|
'files': files('gst-validate-media-check.c'),
|
|
|
|
'deps': [validate_dep, gio_dep],
|
|
|
|
},
|
|
|
|
}
|
2020-03-19 21:48:08 +00:00
|
|
|
|
2021-09-11 15:17:56 +00:00
|
|
|
if validate_video_dep.found()
|
|
|
|
gst_tools += {
|
|
|
|
'gst-validate-images-check': {
|
|
|
|
'files': files('gst-validate-images-check.c'),
|
|
|
|
'deps': [validate_dep, validate_video_dep, gio_dep],
|
|
|
|
},
|
|
|
|
}
|
2020-03-19 21:48:08 +00:00
|
|
|
else
|
2021-09-11 15:17:56 +00:00
|
|
|
message('Can not build gst-validate-images-check' + apiversion)
|
2020-03-19 21:48:08 +00:00
|
|
|
endif
|
|
|
|
|
2017-06-07 13:16:45 +00:00
|
|
|
rtsp_server_dep = dependency('gstreamer-rtsp-server-' + apiversion,
|
2017-06-07 20:18:59 +00:00
|
|
|
fallback: ['gst-rtsp-server', 'gst_rtsp_server_dep'],
|
2017-11-12 14:38:39 +00:00
|
|
|
version : gst_req,
|
2017-06-07 20:18:59 +00:00
|
|
|
required: false)
|
2017-06-07 13:16:45 +00:00
|
|
|
|
|
|
|
if rtsp_server_dep.found()
|
2021-09-11 15:17:56 +00:00
|
|
|
gst_tools += {'gst-validate-rtsp-server': {
|
|
|
|
'files': files('gst-validate-rtsp-server.c'),
|
|
|
|
'deps': [validate_dep, rtsp_server_dep, gio_dep],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
message('Can not build gst-validate-rtsp-server-' + apiversion)
|
2017-06-07 13:16:45 +00:00
|
|
|
endif
|
|
|
|
|
2021-09-11 15:17:56 +00:00
|
|
|
gst_transcoder_dep = dependency('gstreamer-transcoder-' + apiversion, version : gst_req,
|
|
|
|
fallback : ['gst-plugins-bad', 'gst_transcoder_dep'], required: false)
|
|
|
|
if gst_transcoder_dep.found()
|
|
|
|
gst_tools += {'gst-validate-transcoding': {
|
|
|
|
'files': files('gst-validate-transcoding.c'),
|
|
|
|
'deps': [validate_dep, gst_transcoder_dep, gio_dep],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
message('Can not build gst-validate-transcoding-' + apiversion)
|
|
|
|
endif
|
|
|
|
|
2023-03-07 13:05:54 +00:00
|
|
|
if not get_option('tools').disabled() and not static_build
|
2021-09-11 15:17:56 +00:00
|
|
|
|
|
|
|
foreach tool, data: gst_tools
|
2022-09-12 13:46:43 +00:00
|
|
|
if not data.has_key('config_data')
|
2021-09-11 15:17:56 +00:00
|
|
|
exe_name = '@0@-@1@'.format(tool, apiversion)
|
|
|
|
executable(
|
|
|
|
exe_name,
|
|
|
|
data.get('files'),
|
|
|
|
install: true,
|
2022-09-12 13:46:43 +00:00
|
|
|
install_tag: 'bin-devel',
|
2021-09-11 15:17:56 +00:00
|
|
|
include_directories : inc_dirs,
|
|
|
|
dependencies : data.get('deps'),
|
|
|
|
c_args : [gst_c_args] + ['-DG_LOG_DOMAIN="@0@"'.format(exe_name)],
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
endforeach
|
2017-02-10 18:54:05 +00:00
|
|
|
endif
|
|
|
|
|
2016-08-05 19:48:41 +00:00
|
|
|
tmpconf = configuration_data()
|
2017-02-21 16:39:37 +00:00
|
|
|
tmpconf.set('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
|
2016-08-05 19:48:41 +00:00
|
|
|
tmpconf.set('BUILDDIR', meson.current_build_dir())
|
|
|
|
tmpconf.set('SRCDIR', meson.current_source_dir())
|
|
|
|
|
|
|
|
configure_file(input : 'gst-validate-launcher.in',
|
2016-09-21 19:41:45 +00:00
|
|
|
install_dir: get_option('bindir'),
|
2016-08-05 19:48:41 +00:00
|
|
|
output : 'gst-validate-launcher',
|
|
|
|
configuration : tmpconf)
|
2016-11-18 17:45:42 +00:00
|
|
|
|
|
|
|
launcher = find_program(meson.current_build_dir() + '/gst-validate-launcher')
|