meson: Build v4l2 example only if v4l2 plugin was built
authorSeungha Yang <seungha.yang@navercorp.com>
Fri, 8 Mar 2019 02:03:31 +0000 (11:03 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Fri, 8 Mar 2019 02:06:32 +0000 (11:06 +0900)
Otherwise v4l2 example will be built with MSVC

tests/examples/meson.build

index 8f28f7f..eec85b4 100644 (file)
@@ -5,7 +5,9 @@ subdir('qt')
 subdir('rtp')
 subdir('rtsp')
 subdir('shapewipe')
-subdir('v4l2')
+if have_v4l2
+  subdir('v4l2')
+endif
 
 if gtk_dep.found()
   subdir('equalizer')