diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-06-10 16:05:03 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-06-10 16:09:08 +0200 |
commit | 297407bdc61022cb64c15023afbefe618c09e59d (patch) | |
tree | 922a1a867550cb9631814f20db1975dc4f065e61 /src/plugins/platforms/xcb/xcb.pro | |
parent | 1ee96f093a5ecbbdc9030c769aa9b7c3f2642619 (diff) |
Autodetect the xcb backend
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 |