diff options
| author | manuel <manuel@mausz.at> | 2018-04-17 00:15:38 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-04-17 00:15:38 +0200 |
| commit | b3d195f0188758a14875a5a2f270e4fd190a679f (patch) | |
| tree | cbe6a2d51afd7be095e29fd612107044cf1f391e /cmake/platform/linux | |
| parent | a51f51db67e3eab80ac2ed28d403a6d77f7acc45 (diff) | |
| download | kodi-pvr-build-b3d195f0188758a14875a5a2f270e4fd190a679f.tar.gz kodi-pvr-build-b3d195f0188758a14875a5a2f270e4fd190a679f.tar.bz2 kodi-pvr-build-b3d195f0188758a14875a5a2f270e4fd190a679f.zip | |
sync with upstream
Diffstat (limited to 'cmake/platform/linux')
| -rw-r--r-- | cmake/platform/linux/aml.cmake | 2 | ||||
| -rw-r--r-- | cmake/platform/linux/gbm.cmake | 2 | ||||
| -rw-r--r-- | cmake/platform/linux/mir.cmake | 1 | ||||
| -rw-r--r-- | cmake/platform/linux/rbpi.cmake | 2 | ||||
| -rw-r--r-- | cmake/platform/linux/wayland.cmake | 6 | ||||
| -rw-r--r-- | cmake/platform/linux/x11.cmake | 1 |
6 files changed, 12 insertions, 2 deletions
diff --git a/cmake/platform/linux/aml.cmake b/cmake/platform/linux/aml.cmake index c1d464d..82e242b 100644 --- a/cmake/platform/linux/aml.cmake +++ b/cmake/platform/linux/aml.cmake | |||
| @@ -1 +1,3 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS OpenGLES AML EGL) | 1 | set(PLATFORM_REQUIRED_DEPS OpenGLES AML EGL) |
| 2 | set(APP_RENDER_SYSTEM gles) | ||
| 3 | list(APPEND PLATFORM_DEFINES -DMESA_EGL_NO_X11_HEADERS) | ||
diff --git a/cmake/platform/linux/gbm.cmake b/cmake/platform/linux/gbm.cmake index 6a9165a..d8e73d0 100644 --- a/cmake/platform/linux/gbm.cmake +++ b/cmake/platform/linux/gbm.cmake | |||
| @@ -1,2 +1,4 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS OpenGLES EGL GBM LibDRM) | 1 | set(PLATFORM_REQUIRED_DEPS OpenGLES EGL GBM LibDRM) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) | 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) |
| 3 | set(APP_RENDER_SYSTEM gles) | ||
| 4 | list(APPEND PLATFORM_DEFINES -DMESA_EGL_NO_X11_HEADERS -DPLATFORM_SETTINGS_FILE=gbm.xml) | ||
diff --git a/cmake/platform/linux/mir.cmake b/cmake/platform/linux/mir.cmake index 7f20da8..0e672a9 100644 --- a/cmake/platform/linux/mir.cmake +++ b/cmake/platform/linux/mir.cmake | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS OpenGl EGL Mir LibDRM) | 1 | set(PLATFORM_REQUIRED_DEPS OpenGl EGL Mir LibDRM) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI OpenGLES) | 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI OpenGLES) |
| 3 | set(APP_RENDER_SYSTEM gl) | ||
diff --git a/cmake/platform/linux/rbpi.cmake b/cmake/platform/linux/rbpi.cmake index 4899857..fa9a1dc 100644 --- a/cmake/platform/linux/rbpi.cmake +++ b/cmake/platform/linux/rbpi.cmake | |||
| @@ -1 +1,3 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS OpenGLES EGL MMAL) | 1 | set(PLATFORM_REQUIRED_DEPS OpenGLES EGL MMAL) |
| 2 | set(APP_RENDER_SYSTEM gles) | ||
| 3 | list(APPEND PLATFORM_DEFINES -D_ARMEL -DTARGET_RASPBERRY_PI) | ||
diff --git a/cmake/platform/linux/wayland.cmake b/cmake/platform/linux/wayland.cmake index 3934834..f42dbf5 100644 --- a/cmake/platform/linux/wayland.cmake +++ b/cmake/platform/linux/wayland.cmake | |||
| @@ -1,12 +1,14 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS EGL Waylandpp LibDRM Xkbcommon) | 1 | set(PLATFORM_REQUIRED_DEPS EGL WaylandProtocols>=1.7 Waylandpp>=0.2.2 LibDRM Xkbcommon>=0.4.1) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) | 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) |
| 3 | 3 | ||
| 4 | set(WAYLAND_RENDER_SYSTEM "" CACHE STRING "Render system to use with Wayland: \"gl\" or \"gles\"") | 4 | set(WAYLAND_RENDER_SYSTEM "" CACHE STRING "Render system to use with Wayland: \"gl\" or \"gles\"") |
| 5 | 5 | ||
| 6 | if(WAYLAND_RENDER_SYSTEM STREQUAL "gl") | 6 | if(WAYLAND_RENDER_SYSTEM STREQUAL "gl") |
| 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) | 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) |
| 8 | set(APP_RENDER_SYSTEM gl) | ||
| 8 | elseif(WAYLAND_RENDER_SYSTEM STREQUAL "gles") | 9 | elseif(WAYLAND_RENDER_SYSTEM STREQUAL "gles") |
| 9 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) | 10 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) |
| 11 | set(APP_RENDER_SYSTEM gles) | ||
| 10 | else() | 12 | else() |
| 11 | 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\".") | 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\".") |
| 12 | endif() | 14 | endif() |
| @@ -14,4 +16,4 @@ endif() | |||
| 14 | set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols) | 16 | set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols) |
| 15 | set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}") | 17 | set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}") |
| 16 | # for wayland-extra-protocols.hpp | 18 | # for wayland-extra-protocols.hpp |
| 17 | include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}") \ No newline at end of file | 19 | include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}") |
diff --git a/cmake/platform/linux/x11.cmake b/cmake/platform/linux/x11.cmake index 656fd66..09cebde 100644 --- a/cmake/platform/linux/x11.cmake +++ b/cmake/platform/linux/x11.cmake | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS OpenGl EGL X XRandR LibDRM) | 1 | set(PLATFORM_REQUIRED_DEPS OpenGl EGL X XRandR LibDRM) |
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI VDPAU GLX) | 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI VDPAU GLX) |
| 3 | set(APP_RENDER_SYSTEM gl) | ||
