summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/va
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-05-03 22:04:20 +0100
committerEmil Velikov <[email protected]>2017-05-19 19:46:54 +0100
commitfcbedce31012ee319d9e083a10bc44120f830e4d (patch)
tree8bcc03a7662b7606e5f40a0b6ff176314c55b570 /src/gallium/targets/va
parent115cb729d8feedf2d33187a5789ebc7582cc3042 (diff)
gallium/targets: link against XCB only as needed
OMX and VA can optionally use the X11 DRI2/DRI3, thus we should link only as required. Cc: <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/targets/va')
-rw-r--r--src/gallium/targets/va/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/targets/va/Makefile.am b/src/gallium/targets/va/Makefile.am
index f8616406ada..3fcc88e06c1 100644
--- a/src/gallium/targets/va/Makefile.am
+++ b/src/gallium/targets/va/Makefile.am
@@ -29,11 +29,15 @@ gallium_drv_video_la_LIBADD = \
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/util/libmesautil.la \
- $(VL_LIBS) \
- $(XCB_DRI3_LIBS) \
$(LIBDRM_LIBS) \
$(GALLIUM_COMMON_LIB_DEPS)
+if HAVE_PLATFORM_X11
+gallium_drv_video_la_LIBADD += \
+ $(VL_LIBS) \
+ $(XCB_DRI3_LIBS)
+endif
+
EXTRA_gallium_drv_video_la_DEPENDENCIES = va.sym
EXTRA_DIST = va.sym