[Mesa-dev] [PATCH 26/37] targets/vdpau: consolidate lib deps into Automake.inc
Emil Velikov
emil.l.velikov at gmail.com
Sat Nov 2 12:00:56 PDT 2013
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/Automake.inc | 7 +++++++
src/gallium/targets/r300/vdpau/Makefile.am | 5 +----
src/gallium/targets/r600/vdpau/Makefile.am | 5 +----
src/gallium/targets/radeonsi/vdpau/Makefile.am | 5 +----
src/gallium/targets/vdpau-nouveau/Makefile.am | 5 +----
src/gallium/targets/vdpau-softpipe/Makefile.am | 7 ++-----
6 files changed, 13 insertions(+), 21 deletions(-)
diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc
index 765fdd2..86e9b1e 100644
--- a/src/gallium/Automake.inc
+++ b/src/gallium/Automake.inc
@@ -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)
+
diff --git a/src/gallium/targets/r300/vdpau/Makefile.am b/src/gallium/targets/r300/vdpau/Makefile.am
index b597405..e6c746e 100644
--- a/src/gallium/targets/r300/vdpau/Makefile.am
+++ b/src/gallium/targets/r300/vdpau/Makefile.am
@@ -39,17 +39,14 @@ libvdpau_r300_la_LDFLAGS = \
$(GALLIUM_VDPAU_LINKER_FLAGS)
libvdpau_r300_la_LIBADD = \
- $(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/gallium/drivers/r300/libr300-helper.la \
$(top_builddir)/src/gallium/drivers/r300/libr300.la \
- $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
$(top_builddir)/src/gallium/drivers/rbug/librbug.la \
$(top_builddir)/src/gallium/drivers/trace/libtrace.la \
$(top_builddir)/src/gallium/drivers/galahad/libgalahad.la \
+ $(GALLIUM_VDPAU_LIB_DEPS) \
$(GALLIUM_DRI_LIB_DEPS) \
- $(VDPAU_LIBS) \
- $(LIBDRM_LIBS) \
$(RADEON_LIBS)
if HAVE_MESA_LLVM
diff --git a/src/gallium/targets/r600/vdpau/Makefile.am b/src/gallium/targets/r600/vdpau/Makefile.am
index 15d68b7..78bce32 100644
--- a/src/gallium/targets/r600/vdpau/Makefile.am
+++ b/src/gallium/targets/r600/vdpau/Makefile.am
@@ -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
diff --git a/src/gallium/targets/radeonsi/vdpau/Makefile.am b/src/gallium/targets/radeonsi/vdpau/Makefile.am
index 7f0f808..384e617 100644
--- a/src/gallium/targets/radeonsi/vdpau/Makefile.am
+++ b/src/gallium/targets/radeonsi/vdpau/Makefile.am
@@ -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
diff --git a/src/gallium/targets/vdpau-nouveau/Makefile.am b/src/gallium/targets/vdpau-nouveau/Makefile.am
index 46d849c..623ad88 100644
--- a/src/gallium/targets/vdpau-nouveau/Makefile.am
+++ b/src/gallium/targets/vdpau-nouveau/Makefile.am
@@ -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
diff --git a/src/gallium/targets/vdpau-softpipe/Makefile.am b/src/gallium/targets/vdpau-softpipe/Makefile.am
index ab45b64..e244250 100644
--- a/src/gallium/targets/vdpau-softpipe/Makefile.am
+++ b/src/gallium/targets/vdpau-softpipe/Makefile.am
@@ -39,13 +39,10 @@ libvdpau_softpipe_la_LDFLAGS = \
$(GALLIUM_VDPAU_LINKER_FLAGS)
libvdpau_softpipe_la_LIBADD = \
- $(top_builddir)/src/gallium/auxiliary/libgallium.la \
- $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
$(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
$(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la \
- $(VDPAU_LIBS) \
- $(DLOPEN_LIBS) \
- $(LIBDRM_LIBS)
+ $(GALLIUM_VDPAU_LIB_DEPS) \
+ $(DLOPEN_LIBS)
if HAVE_MESA_LLVM
libvdpau_softpipe_la_LINK = $(CXXLINK) $(libvdpau_softpipe_la_LDFLAGS)
--
1.8.4.2
More information about the mesa-dev
mailing list