OSDN Git Service

st/mesa: automake: honour the vdpau header install location
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 16 Apr 2017 14:46:28 +0000 (15:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Apr 2017 12:13:07 +0000 (13:13 +0100)
If VDPAU is installed in the non-default location, we'll fail to find
the headers and error at build time.

../../src/gallium/include/state_tracker/vdpau_dmabuf.h:37:25: fatal error: vdpau/vdpau.h: No such file or directory
 #include <vdpau/vdpau.h>
                         ^

Fixes: faba96bc60b ("st/vdpau: add new interop interface")
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit 51c0c213b7fa53b249e9fcb9004a3ba1076fe773)

src/mesa/Makefile.am

index 9710c7f..53f311d 100644 (file)
@@ -96,6 +96,7 @@ endif
 
 AM_CPPFLAGS = $(DEFINES) $(INCLUDE_DIRS)
 AM_CFLAGS = \
+       $(VDPAU_CFLAGS) \
        $(LLVM_CFLAGS) \
        $(VISIBILITY_CFLAGS) \
        $(MSVC2013_COMPAT_CFLAGS)