From ad3fb007e19e334930389b1a1f8b498159821c9e Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 7 Jan 2021 23:47:35 +0900 Subject: [PATCH] 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: --- sys/va/meson.build | 3 ++- tests/examples/va/meson.build | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/va/meson.build b/sys/va/meson.build index 1f46bd1..375ffb9 100644 --- a/sys/va/meson.build +++ b/sys/va/meson.build @@ -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 diff --git a/tests/examples/va/meson.build b/tests/examples/va/meson.build index c20d184..1909956 100644 --- a/tests/examples/va/meson.build +++ b/tests/examples/va/meson.build @@ -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')) -- 2.7.4