summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
-rw-r--r--sys/Makefile.am10
-rw-r--r--sys/vdpau/Makefile.am11
3 files changed, 29 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bd60b231..dde1cb81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1422,6 +1422,14 @@ AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
], [HAVE_ACM="no"])
])
+dnl *** vdpau ***
+translit(dnm, m, l) AM_CONDITIONAL(USE_VDPAU, true)
+AG_GST_CHECK_FEATURE(VDPAU, [VDPAU], vdpau, [
+ AC_MSG_CHECKING([Checking for up to date vdpau installation])
+ AC_CHECK_HEADERS([vdpau/vdpau.h vdpau/vdpau_x11.h],
+ [HAVE_VDPAU="yes"], [HAVE_VDPAU="no"])
+])
+
else
dnl not building plugins with external dependencies,
@@ -1476,6 +1484,7 @@ AM_CONDITIONAL(USE_XVID, false)
AM_CONDITIONAL(USE_WILDMIDI, false)
AM_CONDITIONAL(USE_WININET, false)
AM_CONDITIONAL(USE_ACM, false)
+AM_CONDITIONAL(USE_VDPAU, false)
fi dnl of EXT plugins
@@ -1608,6 +1617,7 @@ sys/oss4/Makefile
sys/osxvideo/Makefile
sys/qtwrapper/Makefile
sys/vcd/Makefile
+sys/vdpau/Makefile
sys/wasapi/Makefile
sys/wininet/Makefile
sys/winks/Makefile
diff --git a/sys/Makefile.am b/sys/Makefile.am
index 161f3339..15c89e17 100644
--- a/sys/Makefile.am
+++ b/sys/Makefile.am
@@ -70,8 +70,14 @@ else
ACM_DIR=
endif
-SUBDIRS = $(ACM_DIR) $(DIRECTDRAW_DIR) $(DVB_DIR) $(FBDEV_DIR) $(OSS4_DIR) $(OSX_VIDEO_DIR) $(QT_DIR) $(VCD_DIR) $(WININET_DIR)
+if USE_VDPAU
+VDPAU_DIR=vdpau
+else
+VDPAU_DIR=
+endif
+
+SUBDIRS = $(ACM_DIR) $(DIRECTDRAW_DIR) $(DVB_DIR) $(FBDEV_DIR) $(OSS4_DIR) $(OSX_VIDEO_DIR) $(QT_DIR) $(VCD_DIR) $(VDPAU_DIR) $(WININET_DIR)
DIST_SUBDIRS = acmenc acmmp3dec directdraw dvb fbdev dshowdecwrapper dshowsrcwrapper dshowvideosink \
- oss4 osxvideo qtwrapper vcd wasapi wininet winks winscreencap
+ oss4 osxvideo qtwrapper vcd vdpau wasapi wininet winks winscreencap
diff --git a/sys/vdpau/Makefile.am b/sys/vdpau/Makefile.am
new file mode 100644
index 00000000..03d87758
--- /dev/null
+++ b/sys/vdpau/Makefile.am
@@ -0,0 +1,11 @@
+
+lib_LTLIBRARIES = \
+ libgstvdpau.la
+
+libgstvdpau_la_SOURCES =
+
+libgstvdpau_la_CFLAGS = $(GST_CFLAGS)
+libgstvdpau_la_LIBADD = $(GST_LIBS)
+libgstvdpau_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstvdpau_la_LIBTOOLFLAGS = --tag=disable-static
+