diff options
| author | manuel <manuel@mausz.at> | 2021-03-04 23:36:40 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2021-03-04 23:36:40 +0100 |
| commit | 3cb8aa05f8cee9e860cf83531682ff0ed4af6a4f (patch) | |
| tree | 921f4829b32126f80f9113c124f2e14c0ebce8d9 /cmake/platform/linux | |
| parent | be933ef2241d79558f91796cc5b3a161f72ebf9c (diff) | |
| download | kodi-pvr-build-Matrix.tar.gz kodi-pvr-build-Matrix.tar.bz2 kodi-pvr-build-Matrix.zip | |
sync with upstreamMatrix
Diffstat (limited to 'cmake/platform/linux')
| -rw-r--r-- | cmake/platform/linux/gbm.cmake | 17 | ||||
| -rw-r--r-- | cmake/platform/linux/wayland.cmake | 17 | ||||
| -rw-r--r-- | cmake/platform/linux/x11.cmake | 16 |
3 files changed, 13 insertions, 37 deletions
diff --git a/cmake/platform/linux/gbm.cmake b/cmake/platform/linux/gbm.cmake index 75b23f3..8f17ef6 100644 --- a/cmake/platform/linux/gbm.cmake +++ b/cmake/platform/linux/gbm.cmake | |||
| @@ -1,17 +1,8 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS EGL GBM LibDRM LibInput Xkbcommon) | 1 | list(APPEND PLATFORM_REQUIRED_DEPS EGL GBM LibDRM LibInput Xkbcommon) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) | 2 | list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI) |
| 3 | 3 | ||
| 4 | set(GBM_RENDER_SYSTEM "" CACHE STRING "Render system to use with GBM: \"gl\" or \"gles\"") | 4 | if(APP_RENDER_SYSTEM STREQUAL "gl") |
| 5 | |||
| 6 | if(GBM_RENDER_SYSTEM STREQUAL "gl") | ||
| 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) | 5 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) |
| 8 | set(APP_RENDER_SYSTEM gl) | 6 | elseif(APP_RENDER_SYSTEM STREQUAL "gles") |
| 9 | elseif(GBM_RENDER_SYSTEM STREQUAL "gles") | ||
| 10 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) | 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) |
| 11 | set(APP_RENDER_SYSTEM gles) | ||
| 12 | else() | ||
| 13 | message(SEND_ERROR "You need to decide whether you want to use GL- or GLES-based rendering in combination with the GBM windowing system. Please set GBM_RENDER_SYSTEM to either \"gl\" or \"gles\". For normal desktop systems, you will usually want to use \"gl\".") | ||
| 14 | endif() | 8 | endif() |
| 15 | |||
| 16 | # __GBM__ is needed by eglplatform.h in case it is included before gbm.h | ||
| 17 | list(APPEND PLATFORM_DEFINES -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11 -D__GBM__=1 -DPLATFORM_SETTINGS_FILE=gbm.xml) | ||
diff --git a/cmake/platform/linux/wayland.cmake b/cmake/platform/linux/wayland.cmake index 916b578..1adcd8f 100644 --- a/cmake/platform/linux/wayland.cmake +++ b/cmake/platform/linux/wayland.cmake | |||
| @@ -1,21 +1,14 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS WaylandProtocols>=1.7 Waylandpp>=0.2.2 LibDRM Xkbcommon>=0.4.1) | 1 | list(APPEND PLATFORM_REQUIRED_DEPS WaylandProtocols>=1.7 Waylandpp>=0.2.2 LibDRM Xkbcommon>=0.4.1) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) | 2 | list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI) |
| 3 | 3 | ||
| 4 | set(WAYLAND_RENDER_SYSTEM "" CACHE STRING "Render system to use with Wayland: \"gl\" or \"gles\"") | 4 | if(APP_RENDER_SYSTEM STREQUAL "gl") |
| 5 | |||
| 6 | if(WAYLAND_RENDER_SYSTEM STREQUAL "gl") | ||
| 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl EGL) | 5 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl EGL) |
| 8 | set(APP_RENDER_SYSTEM gl) | 6 | elseif(APP_RENDER_SYSTEM STREQUAL "gles") |
| 9 | elseif(WAYLAND_RENDER_SYSTEM STREQUAL "gles") | ||
| 10 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES EGL) | 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES EGL) |
| 11 | set(APP_RENDER_SYSTEM gles) | ||
| 12 | else() | ||
| 13 | message(SEND_ERROR "You need to decide whether you want to use GL- or GLES-based rendering in combination with the Wayland windowing system. Please set WAYLAND_RENDER_SYSTEM to either \"gl\" or \"gles\". For normal desktop systems, you will usually want to use \"gl\".") | ||
| 14 | endif() | 8 | endif() |
| 15 | 9 | ||
| 16 | set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols) | 10 | set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols) |
| 17 | set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}") | 11 | set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}") |
| 18 | # WL_EGL_PLATFORM is needed by eglplatform.h in case it is included before wayland-egl.h | 12 | |
| 19 | list(APPEND PLATFORM_DEFINES -DWL_EGL_PLATFORM=1 -DPLATFORM_SETTINGS_FILE=wayland.xml) | ||
| 20 | # for wayland-extra-protocols.hpp | 13 | # for wayland-extra-protocols.hpp |
| 21 | include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}") | 14 | include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}") |
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 | ||
