diff options
author | Emil Velikov <[email protected]> | 2014-11-09 04:44:14 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-11-26 20:08:40 +0000 |
commit | 2dbaedaf109aad822d72bd0e761c506efbb29ec4 (patch) | |
tree | ad6561ed3a4c0caee123a9b0e7ba6076222f4560 /src/gallium/targets | |
parent | 303bc3609a64c8f9b141d54c32edb1170df443d3 (diff) |
automake: rework VL dependency tracking
Set a single VL_{CFLAG,LIBS} for xcb and friends, and let each target
check for it's relevant library alone. Required as with follow up
commits we'll build aux/vl into a separate module, which needs VL_CFLAGS
Cleanup add a couple of explicit LIBDRM_LIBS linking, as aux/vl itself
requires libdrm, despite that LIBDRM_{RADEON,NOUVEAU...} may provide it
as well.
v2: Rebase. Make sure st/xvmc programs work.
Cc: Christian König <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/omx/Makefile.am | 3 | ||||
-rw-r--r-- | src/gallium/targets/va/Makefile.am | 5 | ||||
-rw-r--r-- | src/gallium/targets/vdpau/Makefile.am | 4 | ||||
-rw-r--r-- | src/gallium/targets/xvmc/Makefile.am | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/src/gallium/targets/omx/Makefile.am b/src/gallium/targets/omx/Makefile.am index 7ea3144ffd3..e69b4a21cf2 100644 --- a/src/gallium/targets/omx/Makefile.am +++ b/src/gallium/targets/omx/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ + $(VL_CFLAGS) \ $(GALLIUM_TARGET_CFLAGS) omxdir = $(OMX_LIB_INSTALL_DIR) @@ -28,6 +29,8 @@ libomx_mesa_la_LIBADD = \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/util/libmesautil.la \ $(OMX_LIBS) \ + $(VL_LIBS) \ + $(LIBDRM_LIBS) \ $(GALLIUM_COMMON_LIB_DEPS) EXTRA_libomx_mesa_la_DEPENDENCIES = omx.sym diff --git a/src/gallium/targets/va/Makefile.am b/src/gallium/targets/va/Makefile.am index 53b43c642ed..fee89237699 100644 --- a/src/gallium/targets/va/Makefile.am +++ b/src/gallium/targets/va/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ + $(VL_CFLAGS) \ $(GALLIUM_TARGET_CFLAGS) vadir = $(VA_LIB_INSTALL_DIR) @@ -23,11 +24,13 @@ gallium_drv_video_la_LDFLAGS += \ -Wl,--version-script=$(top_srcdir)/src/gallium/targets/va/va.sym endif # HAVE_LD_VERSION_SCRIPT +# NOTE: gallium_drv_video does not use(link against) libva gallium_drv_video_la_LIBADD = \ $(top_builddir)/src/gallium/state_trackers/va/libvatracker.la \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/util/libmesautil.la \ - $(VA_LIBS) \ + $(VL_LIBS) \ + $(LIBDRM_LIBS) \ $(GALLIUM_COMMON_LIB_DEPS) EXTRA_gallium_drv_video_la_DEPENDENCIES = va.sym diff --git a/src/gallium/targets/vdpau/Makefile.am b/src/gallium/targets/vdpau/Makefile.am index 68f72a09363..c363114c2bc 100644 --- a/src/gallium/targets/vdpau/Makefile.am +++ b/src/gallium/targets/vdpau/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ + $(VL_CFLAGS) \ $(GALLIUM_TARGET_CFLAGS) vdpaudir = $(VDPAU_LIB_INSTALL_DIR) @@ -28,11 +29,12 @@ libvdpau_gallium_la_LDFLAGS += \ -Wl,--dynamic-list=$(top_srcdir)/src/gallium/targets/dri-vdpau.dyn endif # HAVE_LD_DYNAMIC_LIST +# NOTE: libvdpau_gallium does not use(link against) libvdpau libvdpau_gallium_la_LIBADD = \ $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/util/libmesautil.la \ - $(VDPAU_LIBS) \ + $(VL_LIBS) \ $(LIBDRM_LIBS) \ $(GALLIUM_COMMON_LIB_DEPS) diff --git a/src/gallium/targets/xvmc/Makefile.am b/src/gallium/targets/xvmc/Makefile.am index 7c8799c413e..64092f90929 100644 --- a/src/gallium/targets/xvmc/Makefile.am +++ b/src/gallium/targets/xvmc/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ + $(VL_CFLAGS) \ $(GALLIUM_TARGET_CFLAGS) xvmcdir = $(XVMC_LIB_INSTALL_DIR) @@ -28,6 +29,7 @@ libXvMCgallium_la_LIBADD = \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/util/libmesautil.la \ $(XVMC_LIBS) \ + $(VL_LIBS) \ $(LIBDRM_LIBS) \ $(GALLIUM_COMMON_LIB_DEPS) |