diff options
| author | manuel <manuel@mausz.at> | 2017-09-02 15:02:54 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2017-09-02 15:02:54 +0200 |
| commit | 0afb1d4d51973cf52973617c92236d851a039d31 (patch) | |
| tree | 300741b800f0e013ba1e709cc46460de6383f2bb /cmake/platform | |
| parent | 86b22151f0758311fd146ff508e7254337414bc1 (diff) | |
| download | kodi-pvr-build-0afb1d4d51973cf52973617c92236d851a039d31.tar.gz kodi-pvr-build-0afb1d4d51973cf52973617c92236d851a039d31.tar.bz2 kodi-pvr-build-0afb1d4d51973cf52973617c92236d851a039d31.zip | |
sync with upstream
Diffstat (limited to 'cmake/platform')
| -rw-r--r-- | cmake/platform/linux/wayland.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/platform/linux/wayland.cmake b/cmake/platform/linux/wayland.cmake new file mode 100644 index 0000000..3934834 --- /dev/null +++ b/cmake/platform/linux/wayland.cmake | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | set(PLATFORM_REQUIRED_DEPS EGL Waylandpp LibDRM Xkbcommon) | ||
| 2 | set(PLATFORM_OPTIONAL_DEPS VAAPI) | ||
| 3 | |||
| 4 | set(WAYLAND_RENDER_SYSTEM "" CACHE STRING "Render system to use with Wayland: \"gl\" or \"gles\"") | ||
| 5 | |||
| 6 | if(WAYLAND_RENDER_SYSTEM STREQUAL "gl") | ||
| 7 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) | ||
| 8 | elseif(WAYLAND_RENDER_SYSTEM STREQUAL "gles") | ||
| 9 | list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES) | ||
| 10 | 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\".") | ||
| 12 | endif() | ||
| 13 | |||
| 14 | set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols) | ||
| 15 | set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}") | ||
| 16 | # for wayland-extra-protocols.hpp | ||
| 17 | include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}") \ No newline at end of file | ||
