summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-23 09:12:34 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-02-23 11:01:10 (GMT)
commit2724520fd551512138731058467c9acea0aa3951 (patch)
tree6edebddd31e50a92ca0b6281df1aac14005352ce /config.tests
parent53aaca8bc08150db3b446fbb70de3271fe5ea398 (diff)
downloadQt-2724520fd551512138731058467c9acea0aa3951.zip
Qt-2724520fd551512138731058467c9acea0aa3951.tar.gz
Qt-2724520fd551512138731058467c9acea0aa3951.tar.bz2
Add a configure test for XVideo support
Reviewed-By: TrustMe
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/x11/xvideo/xvideo.cpp10
-rw-r--r--config.tests/x11/xvideo/xvideo.pro3
2 files changed, 13 insertions, 0 deletions
diff --git a/config.tests/x11/xvideo/xvideo.cpp b/config.tests/x11/xvideo/xvideo.cpp
new file mode 100644
index 0000000..9d0eef6
--- /dev/null
+++ b/config.tests/x11/xvideo/xvideo.cpp
@@ -0,0 +1,10 @@
+#include <X11/extensions/Xv.h>
+#include <X11/extensions/Xvlib.h>
+
+int main(int argc, char** argv)
+{
+ unsigned int count = 0;
+ XvAdaptorInfo *adaptors = 0;
+ XvQueryAdaptors(0, 0, &count, &adaptors);
+ return 0;
+}
diff --git a/config.tests/x11/xvideo/xvideo.pro b/config.tests/x11/xvideo/xvideo.pro
new file mode 100644
index 0000000..114cbd3
--- /dev/null
+++ b/config.tests/x11/xvideo/xvideo.pro
@@ -0,0 +1,3 @@
+CONFIG += x11
+CONFIG -= qt
+SOURCES = xvideo.cpp