4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
6 QT += core-private gui-private platformsupport-private
17 qxcbbackingstore.cpp \
20 qxcbnativeinterface.cpp \
36 qxcbnativeinterface.h \
41 # needed by GLX, Xcursor, XLookupString, ...
42 contains(QT_CONFIG, xcb-xlib) {
43 DEFINES += XCB_USE_XLIB
44 LIBS += -lX11 -lX11-xcb
47 # to support custom cursors with depth > 1
48 contains(QT_CONFIG, xcb-render) {
49 DEFINES += XCB_USE_RENDER
50 LIBS += -lxcb-render -lxcb-render-util
53 contains(QT_CONFIG, opengl) {
56 # DEFINES += XCB_USE_DRI2
57 contains(DEFINES, XCB_USE_DRI2) {
58 LIBS += -lxcb-dri2 -lEGL
60 CONFIG += link_pkgconfig
63 HEADERS += qdri2context.h
64 SOURCES += qdri2context.cpp
67 contains(QT_CONFIG, opengles2) {
68 DEFINES += XCB_USE_EGL
71 DEFINES += XCB_USE_GLX
72 HEADERS += qglxintegration.h
73 SOURCES += qglxintegration.cpp
78 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes
80 DEFINES += $$QMAKE_DEFINES_XCB
81 LIBS += $$QMAKE_LIBS_XCB
82 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
84 CONFIG += qpa/genericunixfontdatabase
86 target.path += $$[QT_INSTALL_PLUGINS]/platforms