targets/vdpau: consolidate lib deps into Automake.inc
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 9 Nov 2013 22:51:19 +0000 (22:51 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 16 Nov 2013 16:31:03 +0000 (16:31 +0000)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/Automake.inc
src/gallium/targets/r600/vdpau/Makefile.am
src/gallium/targets/radeonsi/vdpau/Makefile.am
src/gallium/targets/vdpau-nouveau/Makefile.am

index 765fdd2a17d956640e6aeb72e954e97b700aea27..86e9b1e20273c31e9e214cea0a7f7618f5b62c88 100644 (file)
@@ -43,3 +43,10 @@ GALLIUM_VDPAU_LINKER_FLAGS = \
        -export-symbols-regex $(VDPAU_EXPORTS) \
        -shared \
        -no-undefined
+
+GALLIUM_VDPAU_LIB_DEPS = \
+       $(top_builddir)/src/gallium/auxiliary/libgallium.la \
+       $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
+       $(VDPAU_LIBS) \
+       $(LIBDRM_LIBS)
+
index 3a65a6fa7717bc8ca2707e5710141148ab6cc7ed..5d63eedb57fd1dbee337197650f14c41e366922b 100644 (file)
@@ -38,14 +38,11 @@ libvdpau_r600_la_LDFLAGS = \
        $(GALLIUM_VDPAU_LINKER_FLAGS)
 
 libvdpau_r600_la_LIBADD = \
-       $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/gallium/drivers/r600/libr600.la \
-       $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
        $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
        $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
+       $(GALLIUM_VDPAU_LIB_DEPS) \
        $(GALLIUM_DRI_LIB_DEPS) \
-       $(VDPAU_LIBS) \
-       $(LIBDRM_LIBS) \
        $(RADEON_LIBS)
 
 if HAVE_MESA_LLVM
index cd4dcfc1dd7f43f19a812495823bb3c44e56c6ee..22d3c280aafe933b9877f17f5f7d299f847a1250 100644 (file)
@@ -39,16 +39,13 @@ libvdpau_radeonsi_la_LDFLAGS = \
        $(GALLIUM_VDPAU_LINKER_FLAGS)
 
 libvdpau_radeonsi_la_LIBADD = \
-       $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
-       $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
        $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
        $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
        $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
        $(top_builddir)/src/gallium/drivers/noop/libnoop.la \
+       $(GALLIUM_VDPAU_LIB_DEPS) \
        $(GALLIUM_DRI_LIB_DEPS) \
-       $(VDPAU_LIBS) \
-       $(LIBDRM_LIBS) \
        $(RADEON_LIBS)
 
 if HAVE_MESA_LLVM
index 8a15d461f1b1ddfaa53ea1102d567abac38a555a..001cb4ed1aaf3e1bc7d66c35bdcacf78764bd527 100644 (file)
@@ -39,14 +39,11 @@ libvdpau_nouveau_la_LDFLAGS = \
        $(GALLIUM_VDPAU_LINKER_FLAGS)
 
 libvdpau_nouveau_la_LIBADD = \
-       $(top_builddir)/src/gallium/auxiliary/libgallium.la \
-       $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
        $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
        $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
        $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
+       $(GALLIUM_VDPAU_LIB_DEPS) \
        $(GALLIUM_DRI_LIB_DEPS) \
-       $(VDPAU_LIBS) \
-       $(LIBDRM_LIBS) \
        $(NOUVEAU_LIBS)
 
 if HAVE_MESA_LLVM