diff options
Diffstat (limited to 'src/plugins/platforms/xcb/xcb.pro')
-rw-r--r-- | src/plugins/platforms/xcb/xcb.pro | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/platforms/xcb/xcb.pro b/src/plugins/platforms/xcb/xcb.pro index c8814b04f6..e5d9b98bd0 100644 --- a/src/plugins/platforms/xcb/xcb.pro +++ b/src/plugins/platforms/xcb/xcb.pro @@ -37,13 +37,18 @@ HEADERS = \ qxcbcursor.h \ qxcbimage.h -QT += gui-private core-private # needed by GLX, Xcursor, XLookupString, ... -DEFINES += XCB_USE_XLIB +contains(QT_CONFIG, xcb-xlib) { + DEFINES += XCB_USE_XLIB + LIBS += -lX11 -lX11-xcb +} # to support custom cursors with depth > 1 -DEFINES += XCB_USE_RENDER +contains(QT_CONFIG, xcb-render) { + DEFINES += XCB_USE_RENDER + LIBS += -lxcb-render -lxcb-render-util +} contains(QT_CONFIG, opengl) { QT += opengl @@ -71,8 +76,6 @@ contains(QT_CONFIG, opengl) { } LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes -contains(DEFINES, XCB_USE_XLIB): LIBS += -lX11 -lX11-xcb -contains(DEFINES, XCB_USE_RENDER): LIBS += -lxcb-render -lxcb-render-util DEFINES += $$QMAKE_DEFINES_XCB LIBS += $$QMAKE_LIBS_XCB |