Remove dummy impl. of shared graphics cache in XCB plugin
[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 platformsupport-private
7
8
9 SOURCES = \
10         qxcbclipboard.cpp \
11         qxcbconnection.cpp \
12         qxcbintegration.cpp \
13         qxcbkeyboard.cpp \
14         qxcbmime.cpp \
15         qxcbdrag.cpp \
16         qxcbscreen.cpp \
17         qxcbwindow.cpp \
18         qxcbbackingstore.cpp \
19         qxcbwmsupport.cpp \
20         main.cpp \
21         qxcbnativeinterface.cpp \
22         qxcbcursor.cpp \
23         qxcbimage.cpp
24
25 HEADERS = \
26         qxcbclipboard.h \
27         qxcbconnection.h \
28         qxcbintegration.h \
29         qxcbkeyboard.h \
30         qxcbdrag.h \
31         qxcbmime.h \
32         qxcbobject.h \
33         qxcbscreen.h \
34         qxcbwindow.h \
35         qxcbbackingstore.h \
36         qxcbwmsupport.h \
37         qxcbnativeinterface.h \
38         qxcbcursor.h \
39         qxcbimage.h
40
41 contains(QT_CONFIG, xcb-poll-for-queued-event) {
42     DEFINES += XCB_POLL_FOR_QUEUED_EVENT
43 }
44
45 # needed by GLX, Xcursor, XLookupString, ...
46 contains(QT_CONFIG, xcb-xlib) {
47     DEFINES += XCB_USE_XLIB
48     LIBS += -lX11 -lX11-xcb
49
50     linux-g++-maemo {
51         contains(QT_CONFIG, xinput2) {
52             # XInput2 support for Harmattan.
53             DEFINES += XCB_USE_XINPUT2_MAEMO
54             SOURCES += qxcbconnection_maemo.cpp
55             LIBS += -lXi
56         }
57         DEFINES += XCB_USE_MAEMO_WINDOW_PROPERTIES
58     }
59 }
60
61 # to support custom cursors with depth > 1
62 contains(QT_CONFIG, xcb-render) {
63     DEFINES += XCB_USE_RENDER
64     LIBS += -lxcb-render -lxcb-render-util -lXrender
65 }
66
67 #    DEFINES += XCB_USE_DRI2
68 contains(DEFINES, XCB_USE_DRI2) {
69     LIBS += -lxcb-dri2 -lEGL
70
71     CONFIG += link_pkgconfig
72     PKGCONFIG += libdrm
73
74     HEADERS += qdri2context.h
75     SOURCES += qdri2context.cpp
76
77 } else:contains(QT_CONFIG, opengl) {
78     contains(QT_CONFIG, opengles2) {
79         DEFINES += XCB_USE_EGL
80         LIBS += -lEGL
81         HEADERS += qxcbeglsurface.h
82
83         # EGL on MeeGo 1.2 Harmattan needs this macro to map EGLNativeDisplayType
84         # and other types to the correct X11 types
85         DEFINES += SUPPORT_X11
86     } else:contains(QT_CONFIG, xcb-xlib) {
87         DEFINES += XCB_USE_GLX
88         HEADERS += qglxintegration.h
89         SOURCES += qglxintegration.cpp
90         LIBS += $$QMAKE_LIBS_DYNLOAD
91     }
92 }
93
94 LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shape -lxcb-shm
95
96 DEFINES += $$QMAKE_DEFINES_XCB
97 LIBS += $$QMAKE_LIBS_XCB
98 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
99
100 CONFIG += qpa/genericunixfontdatabase
101
102 contains(QT_CONFIG, dbus) {
103 DEFINES += XCB_USE_IBUS
104 QT += dbus
105 LIBS += -ldbus-1
106 }
107
108 OTHER_FILES += xcb.json
109
110 target.path += $$[QT_INSTALL_PLUGINS]/platforms
111 INSTALLS += target