summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/gl_integrations/gl_integrations_plugin_base.pri
blob: 063a74c395d338830eddd5786211a482e0f581ee (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
QT += core-private gui-private xcb_qpa_lib-private

INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/../

load(qt_build_paths)

# needed by Xcursor ...
qtConfig(xcb-xlib) {
    qtConfig(xinput2) {
        DEFINES += XCB_USE_XINPUT2
    }
}

# build with session management support
qtConfig(xcb-sm) {
    DEFINES += XCB_USE_SM
}

!qtConfig(system-xcb) {
    DEFINES += XCB_USE_RENDER
    QMAKE_USE += xcb-static xcb
} else {
    qtConfig(xkb): QMAKE_USE += xcb_xkb
    # to support custom cursors with depth > 1
    qtConfig(xcb-render) {
        DEFINES += XCB_USE_RENDER
    }
    QMAKE_USE += xcb_syslibs
}