mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 17:45:42 -04:00
CMake: Force USE_EGL if USE_WAYLAND is on
This commit is contained in:
parent
2aace1b503
commit
ffd2ac74d9
@ -35,6 +35,11 @@ if(LINUX OR ANDROID)
|
|||||||
option(USE_EGL "Support EGL OpenGL context creation" ON)
|
option(USE_EGL "Support EGL OpenGL context creation" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Force EGL when using Wayland
|
||||||
|
if(USE_WAYLAND)
|
||||||
|
set(USE_EGL ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
# When we're building for libretro, everything else is invalid because of PIC.
|
# When we're building for libretro, everything else is invalid because of PIC.
|
||||||
if(ANDROID OR BUILD_LIBRETRO_CORE)
|
if(ANDROID OR BUILD_LIBRETRO_CORE)
|
||||||
if(BUILD_SDL_FRONTEND)
|
if(BUILD_SDL_FRONTEND)
|
||||||
@ -56,6 +61,9 @@ if(ANDROID OR BUILD_LIBRETRO_CORE)
|
|||||||
if(USE_X11)
|
if(USE_X11)
|
||||||
set(USE_X11 OFF)
|
set(USE_X11 OFF)
|
||||||
endif()
|
endif()
|
||||||
|
if(USE_WAYLAND)
|
||||||
|
set(USE_WAYLAND OFF)
|
||||||
|
endif()
|
||||||
if(BUILD_LIBRETRO_CORE AND USE_EGL)
|
if(BUILD_LIBRETRO_CORE AND USE_EGL)
|
||||||
set(USE_EGL OFF)
|
set(USE_EGL OFF)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user