summaryrefslogtreecommitdiffstats
path: root/src/gui/configure.cmake
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-21 14:46:22 +0100
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-27 15:04:59 +0000
commit31e1dda94b66581580dd92a3664d5f5773b81065 (patch)
tree6c55c9c39124ddc22c61156cf736874805e510f5 /src/gui/configure.cmake
parente03596c2a7d7a3d4b62c90170175fc61957776a9 (diff)
cmake: Give the egl_x11 test the necessary libs to compile
And add the eglfs_x11 plugin We need to actually try to compile the test as the comment it it says that having x11 and egl is not enough since sometimes they are actually incompatible Change-Id: If6bdc08c21b91fa9c41663f2fa653fd59e5ddd2e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/gui/configure.cmake')
-rw-r--r--src/gui/configure.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index 5e29a60463..271c8a182e 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -137,8 +137,13 @@ drmModeAtomicReq *request;
)
# egl-x11
+if (HAVE_EGL AND X11_XCB_FOUND AND X11_FOUND)
+ set(egl_x11_TEST_LIBRARIES EGL::EGL X11::X11 X11::XCB)
+endif()
qt_config_compile_test(egl_x11
LABEL "EGL on X11"
+ LIBRARIES "${egl_x11_TEST_LIBRARIES}"
+ CODE
"// Check if EGL is compatible with X. Some EGL implementations, typically on
// embedded devices, are not intended to be used together with X. EGL support
// has to be disabled in plugins like xcb in this case since the native display,
@@ -162,8 +167,7 @@ XCloseDisplay(dpy);
/* END TEST: */
return 0;
}
-"# FIXME: use: egl xcb_xlib
-)
+")
# egl-brcm
qt_config_compile_test(egl_brcm