4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
6 QT += core-private gui-private platformsupport-private
18 qxcbbackingstore.cpp \
21 qxcbnativeinterface.cpp \
37 qxcbnativeinterface.h \
41 contains(QT_CONFIG, xcb-poll-for-queued-event) {
42 DEFINES += XCB_POLL_FOR_QUEUED_EVENT
45 # needed by GLX, Xcursor, XLookupString, ...
46 contains(QT_CONFIG, xcb-xlib) {
47 DEFINES += XCB_USE_XLIB
48 LIBS += -lX11 -lX11-xcb
51 contains(QT_CONFIG, xinput2) {
52 # XInput2 support for Harmattan.
53 DEFINES += XCB_USE_XINPUT2_MAEMO
54 SOURCES += qxcbconnection_maemo.cpp
57 DEFINES += XCB_USE_MAEMO_WINDOW_PROPERTIES
61 # to support custom cursors with depth > 1
62 contains(QT_CONFIG, xcb-render) {
63 DEFINES += XCB_USE_RENDER
64 LIBS += -lxcb-render -lxcb-render-util -lXrender
67 # DEFINES += XCB_USE_DRI2
68 contains(DEFINES, XCB_USE_DRI2) {
69 LIBS += -lxcb-dri2 -lEGL
71 CONFIG += link_pkgconfig
74 HEADERS += qdri2context.h
75 SOURCES += qdri2context.cpp
77 } else:contains(QT_CONFIG, opengl) {
78 contains(QT_CONFIG, opengles2) {
79 DEFINES += XCB_USE_EGL
81 HEADERS += qxcbeglsurface.h
83 # EGL on MeeGo 1.2 Harmattan needs this macro to map EGLNativeDisplayType
84 # and other types to the correct X11 types
85 DEFINES += SUPPORT_X11
86 } else:contains(QT_CONFIG, xcb-xlib) {
87 DEFINES += XCB_USE_GLX
88 HEADERS += qglxintegration.h
89 SOURCES += qglxintegration.cpp
90 LIBS += $$QMAKE_LIBS_DYNLOAD
94 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shape -lxcb-shm
96 DEFINES += $$QMAKE_DEFINES_XCB
97 LIBS += $$QMAKE_LIBS_XCB
98 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
100 CONFIG += qpa/genericunixfontdatabase
102 contains(QT_CONFIG, dbus) {
103 DEFINES += XCB_USE_IBUS
108 OTHER_FILES += xcb.json
110 target.path += $$[QT_INSTALL_PLUGINS]/platforms