meson: va: Skip configuration on non-linux environment

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>
This commit is contained in:
Seungha Yang 2021-01-07 23:47:35 +09:00
parent 3e2e07bb8a
commit ad3fb007e1
2 changed files with 6 additions and 1 deletions

View 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

View 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'))