summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/input/evdevtouch/evdevtouch.pri
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@jollamobile.com>2013-12-20 15:14:42 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-30 16:51:23 +0100
commit5923196bc3fbed67beb637fd36e1bdf2d6780e36 (patch)
tree6a2f478385ba26ee89fd55908ca9d47eb315ae3b /src/platformsupport/input/evdevtouch/evdevtouch.pri
parente8d31d1b315c40ef0906579b429bc04279a1686d (diff)
mtdev: Change to use configure detection instead of requiring source hacking.
This coincidentally fixes a case of accidental BIC in qevdevtouch_p.h, where not all users would necessarily define USE_MTDEV: having it centralized inside Qt makes this now, blessedly, impossible. Change-Id: I196a8f21742830705759aa917a823afdc94ba2b5 Done-with: Michael Brasser <michael.brasser@jollamobile.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/platformsupport/input/evdevtouch/evdevtouch.pri')
-rw-r--r--src/platformsupport/input/evdevtouch/evdevtouch.pri6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platformsupport/input/evdevtouch/evdevtouch.pri b/src/platformsupport/input/evdevtouch/evdevtouch.pri
index 16e1a981fa..402c276d4d 100644
--- a/src/platformsupport/input/evdevtouch/evdevtouch.pri
+++ b/src/platformsupport/input/evdevtouch/evdevtouch.pri
@@ -8,6 +8,8 @@ contains(QT_CONFIG, libudev) {
LIBS_PRIVATE += $$QMAKE_LIBS_LIBUDEV
}
-# DEFINES += USE_MTDEV
+contains(CONFIG, mtdev) {
+ CONFIG += link_pkgconfig
+ PKGCONFIG_PRIVATE += mtdev
+}
-contains(DEFINES, USE_MTDEV): LIBS_PRIVATE += -lmtdev