Made qpluginbase.pri into a feature profile.
[profile/ivi/qtbase.git] / src / plugins / platforms / xcb / xcb.pro
1 TARGET = xcb
2
3 load(qt_plugin)
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 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