meson: va: Skip configuration on non-linux environment
authorSeungha Yang <seungha@centricular.com>
Thu, 7 Jan 2021 14:47:35 +0000 (23:47 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 7 Jan 2021 14:47:35 +0000 (23:47 +0900)
VA plugin is linux-only plugin, so we can skip it earlier.
Note that this plugin is making use of libdrm meson fallback,
which is unusable on the other platforms such as Windows

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1946>

sys/va/meson.build
tests/examples/va/meson.build

index 1f46bd1..375ffb9 100644 (file)
@@ -21,8 +21,9 @@ va_sources = [
   'gstvavpp.c'
 ]
 
+have_va = false
 va_option = get_option('va')
-if va_option.disabled()
+if va_option.disabled() or host_system != 'linux'
   subdir_done()
 endif
 
index c20d184..1909956 100644 (file)
@@ -1,3 +1,7 @@
+if not have_va
+  subdir_done()
+endif
+
 gtk_dep = dependency('gtk+-3.0', required : get_option('examples'))
 gtk_x11_dep = dependency('gtk+-x11-3.0', required : get_option('examples'))
 x11_dep = dependency('x11', required : get_option('examples'))