summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-12-21 18:26:22 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-12-07 23:49:04 +0000
commit3ee7aa72b78d892153439b668aa9f0a786d9f70e (patch)
treed0d6ed53a1bb6c348e4ecf8e6f15d4108c4b3d95 /src
parent118b456c6b6bb81b879b4c8940414c0c10a57d4a (diff)
configure: atomize xcb-* tests properly
xcb is a dependency which should be detected upfront. same for xlib. this also removes calls to functions coming from the dependencies from the tests (both because these calls prove nothing, and because at some point we will stop linking transitive deps). Change-Id: Iac77305eab33ea8ff5c71302cef980eb908d8403 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/gui/configure.json55
-rw-r--r--src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/eglfs_x11.pro2
2 files changed, 29 insertions, 28 deletions
diff --git a/src/gui/configure.json b/src/gui/configure.json
index 123ef208a2..7b78954038 100644
--- a/src/gui/configure.json
+++ b/src/gui/configure.json
@@ -517,16 +517,14 @@
"xcb_xlib": {
"label": "XCB Xlib",
"test": {
- "include": [ "xcb/xcb.h", "X11/Xlib.h", "X11/Xlib-xcb.h" ],
- "main": [
- "Display *dpy = XOpenDisplay(\"\");",
- "(void) XGetXCBConnection(dpy);"
- ]
+ "include": "X11/Xlib-xcb.h",
+ "main": "(void) XGetXCBConnection((Display *)0);"
},
"sources": [
- { "type": "pkgConfig", "args": "x11-xcb x11 xcb" },
- "-lxcb -lX11 -lX11-xcb"
- ]
+ { "type": "pkgConfig", "args": "x11-xcb" },
+ "-lX11-xcb"
+ ],
+ "use": "xcb xlib"
},
"xcb_xkb": {
"label": "XCB XKB >= 1.10",
@@ -543,14 +541,15 @@
]
},
"sources": [
- { "type": "pkgConfig", "args": "xcb-xkb >= 1.10 xcb" },
- "-lxcb-xkb -lxcb"
- ]
+ { "type": "pkgConfig", "args": "xcb-xkb >= 1.10" },
+ "-lxcb-xkb"
+ ],
+ "use": "xcb"
},
"xcb_render": {
"label": "XCB XRender",
"test": {
- "include": [ "xcb/xcb.h", "xcb/render.h" ],
+ "include": "xcb/render.h",
"tail": [
"// 'template' is used as a function argument name in xcb_renderutil.h",
"#define template template_param",
@@ -563,7 +562,7 @@
"main": [
"int primaryScreen = 0;",
"xcb_generic_error_t *error = 0;",
- "xcb_connection_t *connection = xcb_connect(\"\", &primaryScreen);",
+ "xcb_connection_t *connection = 0;",
"xcb_render_query_pict_formats_cookie_t formatsCookie =",
" xcb_render_query_pict_formats(connection);",
"xcb_render_query_pict_formats_reply_t *formatsReply =",
@@ -574,17 +573,18 @@
]
},
"sources": [
- { "type": "pkgConfig", "args": "xcb-renderutil xcb-render xcb" },
- "-lxcb-render-util -lxcb-render -lxcb"
- ]
+ { "type": "pkgConfig", "args": "xcb-renderutil xcb-render" },
+ "-lxcb-render-util -lxcb-render"
+ ],
+ "use": "xcb"
},
"xcb_glx": {
"label": "XCB GLX",
"test": {
- "include": [ "xcb/xcb.h", "xcb/glx.h" ],
+ "include": "xcb/glx.h",
"main": [
"int primaryScreen = 0;",
- "xcb_connection_t *connection = xcb_connect(\"\", &primaryScreen);",
+ "xcb_connection_t *connection = 0;",
"xcb_generic_error_t *error = 0;",
"xcb_glx_query_version_cookie_t xglx_query_cookie = xcb_glx_query_version(",
" connection, XCB_GLX_MAJOR_VERSION, XCB_GLX_MINOR_VERSION);",
@@ -592,17 +592,17 @@
]
},
"sources": [
- { "type": "pkgConfig", "args": "xcb-glx xcb" },
- "-lxcb-glx -lxcb"
- ]
+ { "type": "pkgConfig", "args": "xcb-glx" },
+ "-lxcb-glx"
+ ],
+ "use": "xcb"
},
"xcb_xinput": {
"label": "XCB XInput",
"test": {
- "include": [ "xcb/xcb.h", "xcb/xinput.h" ],
+ "include": "xcb/xinput.h",
"main": [
- "int primaryScreen = 0;",
- "xcb_connection_t *connection = xcb_connect(\"\", &primaryScreen);",
+ "xcb_connection_t *connection = 0;",
"xcb_generic_error_t *error = 0;",
"xcb_input_xi_query_version_cookie_t xinput_query_cookie = xcb_input_xi_query_version(",
" connection, XCB_INPUT_MAJOR_VERSION, XCB_INPUT_MINOR_VERSION);",
@@ -610,9 +610,10 @@
]
},
"sources": [
- { "type": "pkgConfig", "args": "xcb-xinput >= 1.12 xcb" },
- "-lxcb-xinput -lxcb"
- ]
+ { "type": "pkgConfig", "args": "xcb-xinput >= 1.12" },
+ "-lxcb-xinput"
+ ],
+ "use": "xcb"
},
"xkbcommon": {
"label": "xkbcommon >= 0.5.0",
diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/eglfs_x11.pro b/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/eglfs_x11.pro
index acbd1cc785..6b55918f03 100644
--- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/eglfs_x11.pro
+++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/eglfs_x11.pro
@@ -8,7 +8,7 @@ DEFINES += QT_EGL_NO_X11
INCLUDEPATH += $$PWD/../../api
CONFIG += egl
-QMAKE_USE += xcb_xlib
+QMAKE_USE += xcb_xlib xcb xlib
SOURCES += $$PWD/qeglfsx11main.cpp \
$$PWD/qeglfsx11integration.cpp