summaryrefslogtreecommitdiffstats
path: root/cmake/platform/linux/x11.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/platform/linux/x11.cmake')
-rw-r--r--cmake/platform/linux/x11.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/platform/linux/x11.cmake b/cmake/platform/linux/x11.cmake
new file mode 100644
index 0000000..5f5b8c2
--- /dev/null
+++ b/cmake/platform/linux/x11.cmake
@@ -0,0 +1,9 @@
+list(APPEND PLATFORM_REQUIRED_DEPS EGL X XRandR LibDRM)
+list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI)
+
+if(APP_RENDER_SYSTEM STREQUAL "gl")
+ list(APPEND PLATFORM_REQUIRED_DEPS OpenGl)
+ list(APPEND PLATFORM_OPTIONAL_DEPS GLX VDPAU)
+elseif(APP_RENDER_SYSTEM STREQUAL "gles")
+ list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES)
+endif()