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