targets/vdpau: move linker flags to Automake.inc
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 9 Nov 2013 22:50:47 +0000 (22:50 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 16 Nov 2013 16:31:02 +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 b242bb4ced7f814fa91d58b64927a440acca4d89..765fdd2a17d956640e6aeb72e954e97b700aea27 100644 (file)
@@ -36,3 +36,10 @@ GALLIUM_VIDEO_CFLAGS = \
        $(PTHREAD_CFLAGS) \
        $(LIBDRM_CFLAGS) \
        $(VISIBILITY_CFLAGS)
+
+GALLIUM_VDPAU_LINKER_FLAGS = \
+       -module \
+       -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+       -export-symbols-regex $(VDPAU_EXPORTS) \
+       -shared \
+       -no-undefined
index 742df52074f86192c82e2938da7d3010b1d3babc..3a65a6fa7717bc8ca2707e5710141148ab6cc7ed 100644 (file)
@@ -20,6 +20,8 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
+# Note: Make sure VDPAU_EXPORTS is defined before including Automake.inc
+VDPAU_EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
@@ -28,18 +30,12 @@ AM_CFLAGS = \
 vdpaudir = $(VDPAU_LIB_INSTALL_DIR)
 vdpau_LTLIBRARIES = libvdpau_r600.la
 
-EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
-
 libvdpau_r600_la_SOURCES = \
        drm_target.c \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libvdpau_r600_la_LDFLAGS = \
-       -module \
-       -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
-       -export-symbols-regex $(EXPORTS) \
-       -shared \
-       -no-undefined
+       $(GALLIUM_VDPAU_LINKER_FLAGS)
 
 libvdpau_r600_la_LIBADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
index 9b14634b6d2c6b5659a8042119ce42b6404e8360..cd4dcfc1dd7f43f19a812495823bb3c44e56c6ee 100644 (file)
@@ -20,6 +20,8 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
+# Note: Make sure VDPAU_EXPORTS is defined before including Automake.inc
+VDPAU_EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
@@ -28,19 +30,13 @@ AM_CFLAGS = \
 vdpaudir = $(VDPAU_LIB_INSTALL_DIR)
 vdpau_LTLIBRARIES = libvdpau_radeonsi.la
 
-EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
-
 nodist_EXTRA_libvdpau_radeonsi_la_SOURCES = dummy.cpp
 libvdpau_radeonsi_la_SOURCES = \
        drm_target.c \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libvdpau_radeonsi_la_LDFLAGS = \
-       -module \
-       -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
-       -export-symbols-regex $(EXPORTS) \
-       -shared \
-       -no-undefined
+       $(GALLIUM_VDPAU_LINKER_FLAGS)
 
 libvdpau_radeonsi_la_LIBADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
index 20eb9208e2ba0988ef66c90be771401c07f7749a..8a15d461f1b1ddfaa53ea1102d567abac38a555a 100644 (file)
@@ -20,6 +20,8 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
+# Note: Make sure VDPAU_EXPORTS is defined before including Automake.inc
+VDPAU_EXPORTS = '^(vdp_imp_device_create_x11|nouveau_drm_screen_create)$$'
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
@@ -34,10 +36,7 @@ libvdpau_nouveau_la_SOURCES = \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libvdpau_nouveau_la_LDFLAGS = \
-       -module \
-       -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
-       -shared \
-       -no-undefined
+       $(GALLIUM_VDPAU_LINKER_FLAGS)
 
 libvdpau_nouveau_la_LIBADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \