-subdir('benchmarks')
-# FIXME: make check work on windows
-if host_machine.system() != 'windows'
-subdir('check')
+if not get_option('benchmarks').disabled()
+ subdir('benchmarks')
endif
-if not get_option('disable_examples')
+if not get_option('tests').disabled() and gst_check_dep.found()
+ subdir('check')
+endif
+if not get_option('examples').disabled()
subdir('examples')
endif
-subdir('misc')
+if not get_option('tools').disabled()
+ subdir('misc')
+endif