TARGET = xcb include(../../qpluginbase.pri) QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms SOURCES = \ qxcbconnection.cpp \ qxcbintegration.cpp \ qxcbkeyboard.cpp \ qxcbscreen.cpp \ qxcbwindow.cpp \ qxcbwindowsurface.cpp \ main.cpp HEADERS = \ qxcbconnection.h \ qxcbintegration.h \ qxcbkeyboard.h \ qxcbobject.h \ qxcbscreen.h \ qxcbwindow.h \ qxcbwindowsurface.h contains(QT_CONFIG, opengl) { QT += opengl DEFINES += XCB_USE_XLIB LIBS += -lX11 -lX11-xcb contains(QT_CONFIG, opengles2) { DEFINES += XCB_USE_EGL HEADERS += \ ../eglconvenience/qeglplatformcontext.h \ ../eglconvenience/qeglconvenience.h \ ../eglconvenience/qxlibeglintegration.h SOURCES += \ ../eglconvenience/qeglplatformcontext.cpp \ ../eglconvenience/qeglconvenience.cpp \ ../eglconvenience/qxlibeglintegration.cpp LIBS += -lEGL } else { DEFINES += XCB_USE_GLX HEADERS += qglxintegration.h SOURCES += qglxintegration.cpp } } LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm include (../fontdatabases/genericunix/genericunix.pri) target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target