Merge remote branch 'origin/master' into refactor
[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 QT += core-private gui-private
7
8 QT+=gui-private core-private
9
10 SOURCES = \
11         qxcbconnection.cpp \
12         qxcbintegration.cpp \
13         qxcbkeyboard.cpp \
14         qxcbscreen.cpp \
15         qxcbwindow.cpp \
16         qxcbwindowsurface.cpp \
17         main.cpp \
18         qxcbnativeinterface.cpp
19
20 HEADERS = \
21         qxcbconnection.h \
22         qxcbintegration.h \
23         qxcbkeyboard.h \
24         qxcbobject.h \
25         qxcbscreen.h \
26         qxcbwindow.h \
27         qxcbwindowsurface.h \
28         qxcbnativeinterface.h
29
30 QT += gui-private core-private
31
32 contains(QT_CONFIG, opengl) {
33     QT += opengl
34
35 #    DEFINES += XCB_USE_DRI2
36     contains(DEFINES, XCB_USE_DRI2) {
37         LIBS += -lxcb-dri2 -lxcb-xfixes -lEGL
38
39         CONFIG += link_pkgconfig
40         PKGCONFIG += libdrm
41
42         HEADERS += qdri2context.h
43         SOURCES += qdri2context.cpp
44
45     } else {
46         DEFINES += XCB_USE_XLIB
47         LIBS += -lX11 -lX11-xcb
48
49         contains(QT_CONFIG, opengles2) {
50             DEFINES += XCB_USE_EGL
51             HEADERS += \
52                 ../eglconvenience/qeglplatformcontext.h \
53                 ../eglconvenience/qeglconvenience.h \
54                 ../eglconvenience/qxlibeglintegration.h
55
56             SOURCES += \
57                 ../eglconvenience/qeglplatformcontext.cpp \
58                 ../eglconvenience/qeglconvenience.cpp \
59                 ../eglconvenience/qxlibeglintegration.cpp
60
61             LIBS += -lEGL
62         } else {
63             DEFINES += XCB_USE_GLX
64             include (../glxconvenience/glxconvenience.pri)
65             HEADERS += qglxintegration.h
66             SOURCES += qglxintegration.cpp
67         }
68     }
69 }
70
71 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync
72
73 include (../fontdatabases/genericunix/genericunix.pri)
74
75 target.path += $$[QT_INSTALL_PLUGINS]/platforms
76 INSTALLS += target