Patchwork [qt5] qt5: add mtdev support via useflags and patch

login
register
mail settings
Submitter Jacob Kjaergaard
Date Jan. 3, 2014, 1:19 p.m.
Message ID <1388755141-18788-1-git-send-email-jabk@prevas.dk>
Download mbox | patch
Permalink /patch/306588/
State Accepted
Delegated to: Christian Sørensen
Headers show

Comments

Jacob Kjaergaard - Jan. 3, 2014, 1:19 p.m.
From: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk>

set USE_qtmtdev=1 to enable this patch.

patch will enable multitouch support in qt when
a X version with Xinput 2.2 or above is used.
mtdev dependency added as well.
---
 recipes/qt5/files/mtdev.patch |   10 ++++++++++
 recipes/qt5/qtbase.inc        |   11 ++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 recipes/qt5/files/mtdev.patch

Patch

diff --git a/recipes/qt5/files/mtdev.patch b/recipes/qt5/files/mtdev.patch
new file mode 100644
index 0000000..6cce79e
--- /dev/null
+++ b/recipes/qt5/files/mtdev.patch
@@ -0,0 +1,10 @@ 
+--- a/src/platformsupport/input/evdevtouch/evdevtouch.pri	2013-01-29 20:03:00.000000000 +0100
++++ b/src/platformsupport/input/evdevtouch/evdevtouch.pri	2013-04-14 15:06:21.227737384 +0200
+@@ -8,6 +8,6 @@
+     LIBS += $$QMAKE_LIBS_LIBUDEV
+ }
+ 
+-# DEFINES += USE_MTDEV
++DEFINES += USE_MTDEV
+ 
+ contains(DEFINES, USE_MTDEV): LIBS += -lmtdev
diff --git a/recipes/qt5/qtbase.inc b/recipes/qt5/qtbase.inc
index 8c1ed3c..db672e1 100644
--- a/recipes/qt5/qtbase.inc
+++ b/recipes/qt5/qtbase.inc
@@ -41,7 +41,9 @@  RECIPE_FLAGS += "qtx11 qtdirectfb qttslib qtgstreamer \
 	qtopengl_egl_flags qtopengl_flags \
 	qtopengl_qt_flags qtopengl_es1_flags \
 	qtopengl_es2_flags qtopengl_openvg_flags \
-	qtopengl_hooks_file"
+	qtopengl_hooks_file \
+	qtmtdev \
+	"
 
 require qt5.inc
 
@@ -62,6 +64,13 @@  SRC_URI += " \
     file://qtbug-32712.patch \
 "
 
+## MULTITOUCH SUPPORT
+SRC_URI:>USE_qtmtdev += " \
+    file://mtdev.patch \
+	 "
+DEPENDS:>USE_qtmtdev += " mtdev mtdev-dev"
+RDEPENDS_${PN}:>USE_qtmtdev += " mtdev"
+
 ##################################
 ### DEPENDS
 ##################################