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 !contains(DEFINES, QT_NO_SHAPE):LIBS += -lXext
49 LIBS += -lX11 -lX11-xcb
52 contains(QT_CONFIG, xinput2) {
53 # XInput2 support for Harmattan.
54 DEFINES += XCB_USE_XINPUT2_MAEMO
55 SOURCES += qxcbconnection_maemo.cpp
58 DEFINES += XCB_USE_MAEMO_WINDOW_PROPERTIES
62 # to support custom cursors with depth > 1
63 contains(QT_CONFIG, xcb-render) {
64 DEFINES += XCB_USE_RENDER
65 LIBS += -lxcb-render -lxcb-render-util -lXrender
68 # DEFINES += XCB_USE_DRI2
69 contains(DEFINES, XCB_USE_DRI2) {
70 LIBS += -lxcb-dri2 -lEGL
72 CONFIG += link_pkgconfig
75 HEADERS += qdri2context.h
76 SOURCES += qdri2context.cpp
78 } else:contains(QT_CONFIG, opengl) {
79 contains(QT_CONFIG, opengles2) {
80 DEFINES += XCB_USE_EGL
82 HEADERS += qxcbeglsurface.h
84 # EGL on MeeGo 1.2 Harmattan needs this macro to map EGLNativeDisplayType
85 # and other types to the correct X11 types
86 DEFINES += SUPPORT_X11
87 } else:contains(QT_CONFIG, xcb-xlib) {
88 DEFINES += XCB_USE_GLX
89 HEADERS += qglxintegration.h
90 SOURCES += qglxintegration.cpp
91 LIBS += $$QMAKE_LIBS_DYNLOAD
95 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shape -lxcb-shm -lxcb-randr
97 DEFINES += $$QMAKE_DEFINES_XCB
98 LIBS += $$QMAKE_LIBS_XCB
99 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
101 CONFIG += qpa/genericunixfontdatabase
103 contains(QT_CONFIG, dbus) {
104 DEFINES += XCB_USE_IBUS
109 OTHER_FILES += xcb.json
111 target.path += $$[QT_INSTALL_PLUGINS]/platforms