blob: 122cb4063909bdc8aea8d6f9ce91f45958d80057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
TARGET = xcb
include(../../qpluginbase.pri)
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
SOURCES = \
qxcbconnection.cpp \
qxcbintegration.cpp \
qxcbkeyboard.cpp \
qxcbscreen.cpp \
qxcbwindow.cpp \
qxcbwindowsurface.cpp \
main.cpp \
qxcbnativeinterface.cpp
HEADERS = \
qxcbconnection.h \
qxcbintegration.h \
qxcbkeyboard.h \
qxcbobject.h \
qxcbscreen.h \
qxcbwindow.h \
qxcbwindowsurface.h \
qxcbnativeinterface.h
contains(QT_CONFIG, opengl) {
QT += opengl
# DEFINES += XCB_USE_DRI2
contains(DEFINES, XCB_USE_DRI2) {
LIBS += -lxcb-dri2 -lxcb-xfixes -lEGL
CONFIG += link_pkgconfig
PKGCONFIG += libdrm
HEADERS += qdri2context.h
SOURCES += qdri2context.cpp
} else {
DEFINES += XCB_USE_XLIB
LIBS += -lX11 -lX11-xcb
contains(QT_CONFIG, opengles2) {
DEFINES += XCB_USE_EGL
HEADERS += \
../eglconvenience/qeglplatformcontext.h \
../eglconvenience/qeglconvenience.h \
../eglconvenience/qxlibeglintegration.h
SOURCES += \
../eglconvenience/qeglplatformcontext.cpp \
../eglconvenience/qeglconvenience.cpp \
../eglconvenience/qxlibeglintegration.cpp
LIBS += -lEGL
} else {
DEFINES += XCB_USE_GLX
include (../glxconvenience/glxconvenience.pri)
HEADERS += qglxintegration.h
SOURCES += qglxintegration.cpp
}
}
}
LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm
include (../fontdatabases/genericunix/genericunix.pri)
target.path += $$[QT_INSTALL_PLUGINS]/platforms
INSTALLS += target
|