mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Merge pull request #254 from psyke83/stretch
CMake: use correct Raspberry Pi library names & fix generic GLES support
This commit is contained in:
commit
eedd649ff0
|
@ -42,21 +42,33 @@ ELSE (WIN32)
|
||||||
|
|
||||||
ELSE(APPLE)
|
ELSE(APPLE)
|
||||||
|
|
||||||
FIND_PATH(OPENGLES_INCLUDE_DIR GLES/gl.h
|
IF (DEFINED BCMHOST)
|
||||||
/usr/openwin/share/include
|
FIND_PATH(OPENGLES_INCLUDE_DIR GLES/gl.h
|
||||||
/opt/graphics/OpenGL/include /usr/X11R6/include
|
/opt/vc/include
|
||||||
/usr/include
|
NO_DEFAULT_PATH
|
||||||
/opt/vc/include
|
)
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(OPENGLES_gl_LIBRARY
|
FIND_LIBRARY(OPENGLES_gl_LIBRARY
|
||||||
NAMES GLES_CM GLESv1_CM
|
NAMES brcmGLESv2
|
||||||
PATHS /opt/graphics/OpenGL/lib
|
PATHS /opt/vc/lib
|
||||||
/usr/openwin/lib
|
)
|
||||||
/usr/shlib /usr/X11R6/lib
|
|
||||||
/usr/lib
|
ELSE (DEFINED BCMHOST)
|
||||||
/opt/vc/lib
|
|
||||||
)
|
FIND_PATH(OPENGLES_INCLUDE_DIR GLES/gl.h
|
||||||
|
/usr/openwin/share/include
|
||||||
|
/opt/graphics/OpenGL/include /usr/X11R6/include
|
||||||
|
/usr/include
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(OPENGLES_gl_LIBRARY
|
||||||
|
NAMES GLES_CM GLESv1_CM
|
||||||
|
PATHS /opt/graphics/OpenGL/lib
|
||||||
|
/usr/openwin/lib
|
||||||
|
/usr/shlib /usr/X11R6/lib
|
||||||
|
/usr/lib
|
||||||
|
)
|
||||||
|
ENDIF (DEFINED BCMHOST)
|
||||||
|
|
||||||
# On Unix OpenGL most certainly always requires X11.
|
# On Unix OpenGL most certainly always requires X11.
|
||||||
# Feel free to tighten up these conditions if you don't
|
# Feel free to tighten up these conditions if you don't
|
||||||
|
|
|
@ -178,7 +178,7 @@ endif()
|
||||||
if(DEFINED BCMHOST)
|
if(DEFINED BCMHOST)
|
||||||
LIST(APPEND COMMON_LIBRARIES
|
LIST(APPEND COMMON_LIBRARIES
|
||||||
bcm_host
|
bcm_host
|
||||||
EGL
|
brcmEGL
|
||||||
${OPENGLES_LIBRARIES}
|
${OPENGLES_LIBRARIES}
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue