diff options
author | peak3d <pfau@peak3d.de> | 2018-01-24 21:45:25 +0100 |
---|---|---|
committer | peak3d <pfau@peak3d.de> | 2018-01-24 21:45:25 +0100 |
commit | 3e0be4fbfda243982fa4487156fcd4720ce6761d (patch) | |
tree | bc71cf2acf3d0ce9fc4e334ee3baa7df24feb092 | |
parent | 4130255faa0f1c88ef7ecbca7da57739a1eaeec1 (diff) |
[AML] define MESA_EGL_NO_X11_HEADERS to detect correct egl_platform
-rw-r--r-- | cmake/platform/linux/aml.cmake | 1 | ||||
-rw-r--r-- | cmake/scripts/common/ArchSetup.cmake | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cmake/platform/linux/aml.cmake b/cmake/platform/linux/aml.cmake index 3b2fe76277..82e242b06a 100644 --- a/cmake/platform/linux/aml.cmake +++ b/cmake/platform/linux/aml.cmake @@ -1,2 +1,3 @@ set(PLATFORM_REQUIRED_DEPS OpenGLES AML EGL) set(APP_RENDER_SYSTEM gles) +list(APPEND PLATFORM_DEFINES -DMESA_EGL_NO_X11_HEADERS) diff --git a/cmake/scripts/common/ArchSetup.cmake b/cmake/scripts/common/ArchSetup.cmake index 3b8153313d..c97929e58c 100644 --- a/cmake/scripts/common/ArchSetup.cmake +++ b/cmake/scripts/common/ArchSetup.cmake @@ -153,6 +153,10 @@ if(NOT DEFINED NEON OR NEON) endif() endif() +if(PLATFORM_DEFINES) + add_options(ALL_LANGUAGES ALL_BUILDS ${PLATFORM_DEFINES}) +endif() + if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_options (ALL_LANGUAGES DEBUG "-g" "-D_DEBUG" "-Wall") endif() |