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