Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
[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 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