mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
30509252ca
This is what gstreamer core does too, and avoids a configure error when tests are disabled globally. Also print a useful error when gst_tester is not found from the gstreamer subproject. This broke in https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/697>
17 lines
554 B
Meson
17 lines
554 B
Meson
pluginsdirs = []
|
|
if gst_dep.type_name() == 'pkgconfig'
|
|
pluginsdirs = [gst_dep.get_pkgconfig_variable('pluginsdir')]
|
|
gst_plugin_scanner_dir = gst_dep.get_pkgconfig_variable('pluginscannerdir')
|
|
else
|
|
gst_plugin_scanner_dir = gst_proj.get_variable('gst_scanner_dir')
|
|
endif
|
|
gst_plugin_scanner_path = join_paths(gst_plugin_scanner_dir, 'gst-plugin-scanner')
|
|
|
|
if not get_option('tests').disabled() and gst_check_dep.found()
|
|
subdir('check')
|
|
subdir('icles')
|
|
subdir('validate')
|
|
endif
|
|
if not get_option('examples').disabled()
|
|
subdir('examples')
|
|
endif
|