meson: Use the tests option for validate
[platform/upstream/gstreamer.git] / tests / meson.build
index c44bfc8..25bd349 100644 (file)
@@ -1,9 +1,17 @@
-# FIXME: make check work on windows
-if host_machine.system() != 'windows'
+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('disable_examples')
+if not get_option('examples').disabled()
   subdir('examples')
 endif
-#subdir('files')
-# FIXME: subdir('icles')