summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2019-04-09 09:20:23 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-04-09 11:39:32 +0200
commit81203a6098038d347e3ff54a4d1aff321209da10 (patch)
treeba0b620cf653925f42758f0792443d067281223a /tests
parent539c39fbe13a291e4ca7df8768e8cfea390bef2b (diff)
meson: build test-vaapicontext when using X11
x11_dep and libva_x11_dep are optional and meson ignores these dependencies even if they are added into the dependency list. This fixes the error below when libva-x11 is not avaiblabe: cc -Itests/elements/tests@elements@@test-vaapicontext@exe -Itests/elements -I../../gstreamer-vaapi/tests/elements -I. -I../../gstreamer-vaapi/ -Igst-libs -I../../gstreamer-vaapi/gst-libs -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/orc-0.4 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -fvisibility=hidden -fno-strict-aliasing -pthread -DHAVE_CONFIG_H -MD -MQ 'tests/elements/tests@elements@@test-vaapicontext@exe/test-vaapicontext.c.o' -MF 'tests/elements/tests@elements@@test-vaapicontext@exe/test-vaapicontext.c.o.d' -o 'tests/elements/tests@elements@@test-vaapicontext@exe/test-vaapicontext.c.o' -c ../../gstreamer-vaapi/tests/elements/test-vaapicontext.c ../../gstreamer-vaapi/tests/elements/test-vaapicontext.c:29:10: fatal error: va/va_x11.h: No such file or directory #include <va/va_x11.h>
Diffstat (limited to 'tests')
-rw-r--r--tests/elements/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/elements/meson.build b/tests/elements/meson.build
index f64d1cda..0a61f7d0 100644
--- a/tests/elements/meson.build
+++ b/tests/elements/meson.build
@@ -12,6 +12,7 @@ foreach example : examples
install: false)
endforeach
+if USE_X11
if gtk_dep.found()
executable('test-vaapicontext', 'test-vaapicontext.c',
c_args : gstreamer_vaapi_args,
@@ -24,3 +25,4 @@ if gtk_dep.found()
libva_x11_dep ],
install: false)
endif
+endif