X11: Make libX11 dynamically loaded

This completes the dynamic loading of all X11 libraries in preparation
for run-time platform selection.
This commit is contained in:
Camilla Löwy
2019-12-16 13:19:37 +01:00
parent 0c27ed1d0e
commit a0a5cc57df
4 changed files with 508 additions and 6 deletions

View File

@@ -195,11 +195,8 @@ if (_GLFW_X11)
find_package(X11 REQUIRED)
list(APPEND glfw_PKG_DEPS "x11")
# Set up library and include paths
list(APPEND glfw_INCLUDE_DIRS "${X11_X11_INCLUDE_PATH}")
list(APPEND glfw_LIBRARIES "${X11_X11_LIB}")
# Check for XRandR (modern resolution switching and gamma control)
if (NOT X11_Xrandr_INCLUDE_PATH)