summaryrefslogtreecommitdiffstats
path: root/cmake/platform/linux/gbm.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/platform/linux/gbm.cmake')
-rw-r--r--cmake/platform/linux/gbm.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/platform/linux/gbm.cmake b/cmake/platform/linux/gbm.cmake
new file mode 100644
index 0000000..5e0475a
--- /dev/null
+++ b/cmake/platform/linux/gbm.cmake
@@ -0,0 +1,8 @@
+list(APPEND PLATFORM_REQUIRED_DEPS GBM LibDRM LibInput Xkbcommon UDEV)
+list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI)
+
+if(APP_RENDER_SYSTEM STREQUAL "gl")
+ list(APPEND PLATFORM_REQUIRED_DEPS OpenGl EGL)
+elseif(APP_RENDER_SYSTEM STREQUAL "gles")
+ list(APPEND PLATFORM_REQUIRED_DEPS OpenGLES EGL)
+endif()