summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTiago Vignatti <tvignatti@gmail.com>2016-08-01 17:30:43 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-11-17 01:01:15 +0100
commit32b6f2fa0383f04855a181f6db61df84968ec97c (patch)
treeb47e1f03cb06924d16ac1a514dc4727ea0053b75 /Makefile
parent50f0f919c38a905b8b169fcbd3e77c03bf48d17b (diff)
downloadqtlocation-mapboxgl-32b6f2fa0383f04855a181f6db61df84968ec97c.tar.gz
[linux] Implement EGL headless backend
Original author: Tiago Vignatti <tvignatti@gmail.com> Calling X11 window system is superfluous for headless rendering. This patch implements EGL platform using GBM, which is slightly more simple than the GLX path when using X11. In principle there are no big advantages in terms of performance etc. My motivation behind this was to get in touch with the code and the project. For testing I'm using: $ unset DISPLAY && ./build/linux-x86_64/Debug/mbgl-test v2: rebased patch against the new cmake changes; walk through render node to find a valid one; remove EGLSurface completely cause windows are not needed here.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b061f2a3f2..999a4efa79 100644
--- a/Makefile
+++ b/Makefile
@@ -295,7 +295,8 @@ $(LINUX_BUILD): $(BUILD_DEPS)
-DWITH_CXX11ABI=$(shell scripts/check-cxx11abi.sh) \
-DWITH_COVERAGE=${WITH_COVERAGE} \
-DIS_CI_BUILD=${CI} \
- -DWITH_OSMESA=${WITH_OSMESA})
+ -DWITH_OSMESA=${WITH_OSMESA} \
+ -DWITH_EGL=${WITH_EGL})
.PHONY: linux
linux: glfw-app render offline