Initial import from the monolithic Qt.
[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 contains(QT_CONFIG, opengl) {
27     QT += opengl
28
29 #    DEFINES += XCB_USE_DRI2
30     contains(DEFINES, XCB_USE_DRI2) {
31         LIBS += -lxcb-dri2 -lxcb-xfixes -lEGL
32
33         CONFIG += link_pkgconfig
34         PKGCONFIG += libdrm
35
36         HEADERS += qdri2context.h
37         SOURCES += qdri2context.cpp
38
39     } else {
40         DEFINES += XCB_USE_XLIB
41         LIBS += -lX11 -lX11-xcb
42
43         contains(QT_CONFIG, opengles2) {
44             DEFINES += XCB_USE_EGL
45             HEADERS += \
46                 ../eglconvenience/qeglplatformcontext.h \
47                 ../eglconvenience/qeglconvenience.h \
48                 ../eglconvenience/qxlibeglintegration.h
49
50             SOURCES += \
51                 ../eglconvenience/qeglplatformcontext.cpp \
52                 ../eglconvenience/qeglconvenience.cpp \
53                 ../eglconvenience/qxlibeglintegration.cpp
54
55             LIBS += -lEGL
56         } else {
57             DEFINES += XCB_USE_GLX
58             include (../glxconvenience/glxconvenience.pri)
59             HEADERS += qglxintegration.h
60             SOURCES += qglxintegration.cpp
61         }
62     }
63 }
64
65 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync
66
67 include (../fontdatabases/genericunix/genericunix.pri)
68
69 target.path += $$[QT_INSTALL_PLUGINS]/platforms
70 INSTALLS += target