diff options
Diffstat (limited to 'cmake/platform/linux/x11.cmake')
| -rw-r--r-- | cmake/platform/linux/x11.cmake | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/cmake/platform/linux/x11.cmake b/cmake/platform/linux/x11.cmake index 5d7f3d4..5f5b8c2 100644 --- a/cmake/platform/linux/x11.cmake +++ b/cmake/platform/linux/x11.cmake | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS EGL X XRandR LibDRM) | 1 | list(APPEND PLATFORM_REQUIRED_DEPS EGL X XRandR LibDRM) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) | 2 | list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI) |
| 3 | 3 | ||
| 4 | set(X11_RENDER_SYSTEM "" CACHE STRING "Render system to use with X11: \"gl\" or \"gles\"") | 4 | if(APP_RENDER_SYSTEM STREQUAL "gl") |
| 5 | |||
| 6 | if(X11_RENDER_SYSTEM STREQUAL "gl") | ||
| 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) | 5 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) |
| 8 | list(APPEND PLATFORM_OPTIONAL_DEPS GLX VDPAU) | 6 | list(APPEND PLATFORM_OPTIONAL_DEPS GLX VDPAU) |
| 9 | set(APP_RENDER_SYSTEM gl) | 7 | elseif(APP_RENDER_SYSTEM STREQUAL "gles") |
| 10 | elseif(X11_RENDER_SYSTEM STREQUAL "gles") | ||
| 11 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) | 8 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) |
| 12 | set(APP_RENDER_SYSTEM gles) | ||
| 13 | else() | ||
| 14 | message(SEND_ERROR "You need to decide whether you want to use GL- or GLES-based rendering in combination with the X11 windowing system. Please set X11_RENDER_SYSTEM to either \"gl\" or \"gles\". For normal desktop systems, you will usually want to use \"gl\".") | ||
| 15 | endif() | 9 | endif() |
| 16 | |||
| 17 | list(APPEND PLATFORM_DEFINES -DPLATFORM_SETTINGS_FILE=x11.xml) \ No newline at end of file | ||
