aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform
diff options
context:
space:
mode:
authorPhilipp Kerling <pkerling@casix.org>2018-04-07 12:08:28 +0200
committerPhilipp Kerling <pkerling@casix.org>2018-07-23 00:16:45 +0200
commit10871f25d78e6cd5bb893a688ebebc720b9a5961 (patch)
treedc327d9be200a4a66556773be03383e662743e48 /cmake/platform
parentbde3974b5a0812ddb33dd34daa1474783eb32e10 (diff)
Allow to specify EGL platform enum for CreateDisplay()
Diffstat (limited to 'cmake/platform')
-rw-r--r--cmake/platform/linux/gbm.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/platform/linux/gbm.cmake b/cmake/platform/linux/gbm.cmake
index a0291360a4..28b400a4e6 100644
--- a/cmake/platform/linux/gbm.cmake
+++ b/cmake/platform/linux/gbm.cmake
@@ -1,4 +1,5 @@
set(PLATFORM_REQUIRED_DEPS OpenGLES EGL GBM LibDRM LibInput Xkbcommon)
set(PLATFORM_OPTIONAL_DEPS VAAPI)
set(APP_RENDER_SYSTEM gles)
-list(APPEND PLATFORM_DEFINES -DMESA_EGL_NO_X11_HEADERS -DPLATFORM_SETTINGS_FILE=gbm.xml)
+# __GBM__ is needed by eglplatform.h in case it is included before gbm.h
+list(APPEND PLATFORM_DEFINES -DMESA_EGL_NO_X11_HEADERS -D__GBM__=1 -DPLATFORM_SETTINGS_FILE=gbm.xml)