vlc_vaapi: find right location for libva headers
authorDaniel Charles <daniel.charles@intel.com>
Wed, 3 Apr 2019 22:24:38 +0000 (15:24 -0700)
committerThomas Guillem <thomas@gllm.fr>
Thu, 4 Apr 2019 07:46:28 +0000 (09:46 +0200)
building vlc_vaapi when libva is not installed in a
previously include path, it won't be able to find va headers.

Adding proper CFLAGS when compiling x11 and drm plugins

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/hw/vaapi/Makefile.am

index dc47f9b..0e3a512 100644 (file)
@@ -6,11 +6,11 @@ libdecdev_vaapi_wl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) -DHAVE_VA_WL $(L
 libdecdev_vaapi_wl_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_WL_LIBS)
 
 libdecdev_vaapi_x11_plugin_la_SOURCES = $(libdecdev_vaapi_wl_plugin_la_SOURCES)
-libdecdev_vaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_VA_X11
+libdecdev_vaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBVA_CFLAGS) -DHAVE_VA_X11
 libdecdev_vaapi_x11_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
 
 libdecdev_vaapi_drm_plugin_la_SOURCES = $(libdecdev_vaapi_wl_plugin_la_SOURCES)
-libdecdev_vaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_VA_DRM
+libdecdev_vaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBVA_CFLAGS) -DHAVE_VA_DRM
 libdecdev_vaapi_drm_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_DRM_LIBS)
 
 libvaapi_filters_plugin_la_SOURCES = hw/vaapi/filters.c hw/vaapi/filters.h \