Add multipoint touch support for Harmattan to the xcb platform plugin.
[profile/ivi/qtbase.git] / src / plugins / platforms / xcb / xcb.pro
1 TARGET = xcb
2
3 load(qt_plugin)
4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
5
6 QT += core-private gui-private platformsupport-private
7
8 SOURCES = \
9         qxcbclipboard.cpp \
10         qxcbconnection.cpp \
11         qxcbintegration.cpp \
12         qxcbkeyboard.cpp \
13         qxcbmime.cpp \
14         qxcbdrag.cpp \
15         qxcbscreen.cpp \
16         qxcbwindow.cpp \
17         qxcbbackingstore.cpp \
18         qxcbwmsupport.cpp \
19         main.cpp \
20         qxcbnativeinterface.cpp \
21         qxcbcursor.cpp \
22         qxcbimage.cpp
23
24 HEADERS = \
25         qxcbclipboard.h \
26         qxcbconnection.h \
27         qxcbintegration.h \
28         qxcbkeyboard.h \
29         qxcbdrag.h \
30         qxcbmime.h \
31         qxcbobject.h \
32         qxcbscreen.h \
33         qxcbwindow.h \
34         qxcbbackingstore.h \
35         qxcbwmsupport.h \
36         qxcbnativeinterface.h \
37         qxcbcursor.h \
38         qxcbimage.h
39
40 contains(QT_CONFIG, xcb-poll-for-queued-event) {
41     DEFINES += XCB_POLL_FOR_QUEUED_EVENT
42 }
43
44 # needed by GLX, Xcursor, XLookupString, ...
45 contains(QT_CONFIG, xcb-xlib) {
46     DEFINES += XCB_USE_XLIB
47     LIBS += -lX11 -lX11-xcb
48
49     linux-g++-maemo:contains(QT_CONFIG, xinput2) {
50         # XInput2 support for Harmattan.
51         DEFINES += XCB_USE_XINPUT2_MAEMO
52         SOURCES += qxcbconnection_maemo.cpp
53         LIBS += -lXi
54     }
55 }
56
57 # to support custom cursors with depth > 1
58 contains(QT_CONFIG, xcb-render) {
59     DEFINES += XCB_USE_RENDER
60     LIBS += -lxcb-render -lxcb-render-util -lXrender
61 }
62
63 #    DEFINES += XCB_USE_DRI2
64 contains(DEFINES, XCB_USE_DRI2) {
65     LIBS += -lxcb-dri2 -lEGL
66
67     CONFIG += link_pkgconfig
68     PKGCONFIG += libdrm
69
70     HEADERS += qdri2context.h
71     SOURCES += qdri2context.cpp
72
73 } else {
74     contains(QT_CONFIG, opengles2) {
75         DEFINES += XCB_USE_EGL
76         LIBS += -lEGL
77         HEADERS += qxcbeglsurface.h
78
79         # EGL on MeeGo 1.2 Harmattan needs this macro to map EGLNativeDisplayType
80         # and other types to the correct X11 types
81         DEFINES += SUPPORT_X11
82     } else:contains(QT_CONFIG, xcb-xlib) {
83         DEFINES += XCB_USE_GLX
84         HEADERS += qglxintegration.h
85         SOURCES += qglxintegration.cpp
86     }
87 }
88
89 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes
90
91 DEFINES += $$QMAKE_DEFINES_XCB
92 LIBS += $$QMAKE_LIBS_XCB
93 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
94
95 CONFIG += qpa/genericunixfontdatabase
96
97 contains(QT_CONFIG, dbus) {
98 DEFINES += XCB_USE_IBUS
99 QT += dbus
100 LIBS += -ldbus-1
101 }
102
103 target.path += $$[QT_INSTALL_PLUGINS]/platforms
104 INSTALLS += target