4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
6 QT += core-private gui-private platformsupport-private
18 qxcbbackingstore.cpp \
21 qxcbnativeinterface.cpp \
24 qxcbsharedbuffermanager.cpp \
25 qxcbsharedgraphicscache.cpp
39 qxcbnativeinterface.h \
42 qxcbsharedbuffermanager.h \
43 qxcbsharedgraphicscache.h
45 contains(QT_CONFIG, xcb-poll-for-queued-event) {
46 DEFINES += XCB_POLL_FOR_QUEUED_EVENT
49 # needed by GLX, Xcursor, XLookupString, ...
50 contains(QT_CONFIG, xcb-xlib) {
51 DEFINES += XCB_USE_XLIB
52 LIBS += -lX11 -lX11-xcb
55 contains(QT_CONFIG, xinput2) {
56 # XInput2 support for Harmattan.
57 DEFINES += XCB_USE_XINPUT2_MAEMO
58 SOURCES += qxcbconnection_maemo.cpp
61 DEFINES += XCB_USE_MAEMO_WINDOW_PROPERTIES
65 # to support custom cursors with depth > 1
66 contains(QT_CONFIG, xcb-render) {
67 DEFINES += XCB_USE_RENDER
68 LIBS += -lxcb-render -lxcb-render-util -lXrender
71 # DEFINES += XCB_USE_DRI2
72 contains(DEFINES, XCB_USE_DRI2) {
73 LIBS += -lxcb-dri2 -lEGL
75 CONFIG += link_pkgconfig
78 HEADERS += qdri2context.h
79 SOURCES += qdri2context.cpp
81 } else:contains(QT_CONFIG, opengl) {
82 contains(QT_CONFIG, opengles2) {
83 DEFINES += XCB_USE_EGL
85 HEADERS += qxcbeglsurface.h
87 # EGL on MeeGo 1.2 Harmattan needs this macro to map EGLNativeDisplayType
88 # and other types to the correct X11 types
89 DEFINES += SUPPORT_X11
90 } else:contains(QT_CONFIG, xcb-xlib) {
91 DEFINES += XCB_USE_GLX
92 HEADERS += qglxintegration.h
93 SOURCES += qglxintegration.cpp
94 LIBS += $$QMAKE_LIBS_DYNLOAD
98 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shape -lxcb-shm
100 DEFINES += $$QMAKE_DEFINES_XCB
101 LIBS += $$QMAKE_LIBS_XCB
102 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
104 CONFIG += qpa/genericunixfontdatabase
106 contains(QT_CONFIG, dbus) {
107 DEFINES += XCB_USE_IBUS
112 OTHER_FILES += xcb.json
114 target.path += $$[QT_INSTALL_PLUGINS]/platforms