Add xcb based mime type handling
[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         qxcbmime.cpp \
13         qxcbscreen.cpp \
14         qxcbwindow.cpp \
15         qxcbwindowsurface.cpp \
16         main.cpp \
17         qxcbnativeinterface.cpp
18
19 HEADERS = \
20         qxcbconnection.h \
21         qxcbintegration.h \
22         qxcbkeyboard.h \
23         qxcbmime.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 include (../printersupport/genericunix/genericunix.pri)
75
76 target.path += $$[QT_INSTALL_PLUGINS]/platforms
77 INSTALLS += target