More fixes...
[profile/ivi/qtbase.git] / src / plugins / platforms / xcb / xcb.pro
1 TARGET = xcb
2
3 include(../../qpluginbase.pri)
4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
5
6 SOURCES = \
7         qxcbconnection.cpp \
8         qxcbintegration.cpp \
9         qxcbkeyboard.cpp \
10         qxcbscreen.cpp \
11         qxcbwindow.cpp \
12         qxcbwindowsurface.cpp \
13         main.cpp \
14         qxcbnativeinterface.cpp
15
16 HEADERS = \
17         qxcbconnection.h \
18         qxcbintegration.h \
19         qxcbkeyboard.h \
20         qxcbobject.h \
21         qxcbscreen.h \
22         qxcbwindow.h \
23         qxcbwindowsurface.h \
24         qxcbnativeinterface.h
25
26 QT += gui-private
27
28 contains(QT_CONFIG, opengl) {
29     QT += opengl
30
31 #    DEFINES += XCB_USE_DRI2
32     contains(DEFINES, XCB_USE_DRI2) {
33         LIBS += -lxcb-dri2 -lxcb-xfixes -lEGL
34
35         CONFIG += link_pkgconfig
36         PKGCONFIG += libdrm
37
38         HEADERS += qdri2context.h
39         SOURCES += qdri2context.cpp
40
41     } else {
42         DEFINES += XCB_USE_XLIB
43         LIBS += -lX11 -lX11-xcb
44
45         contains(QT_CONFIG, opengles2) {
46             DEFINES += XCB_USE_EGL
47             HEADERS += \
48                 ../eglconvenience/qeglplatformcontext.h \
49                 ../eglconvenience/qeglconvenience.h \
50                 ../eglconvenience/qxlibeglintegration.h
51
52             SOURCES += \
53                 ../eglconvenience/qeglplatformcontext.cpp \
54                 ../eglconvenience/qeglconvenience.cpp \
55                 ../eglconvenience/qxlibeglintegration.cpp
56
57             LIBS += -lEGL
58         } else {
59             DEFINES += XCB_USE_GLX
60             include (../glxconvenience/glxconvenience.pri)
61             HEADERS += qglxintegration.h
62             SOURCES += qglxintegration.cpp
63         }
64     }
65 }
66
67 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync
68
69 include (../fontdatabases/genericunix/genericunix.pri)
70
71 target.path += $$[QT_INSTALL_PLUGINS]/platforms
72 INSTALLS += target