Commit graph

4 commits

Author SHA1 Message Date
cmitu
d5d3cbfc4b cmake: add GLES20 renderer build support
Added support for the GLESv2 renderer to the CMake build.

* Refactored the OpenGLES detection for both versions.
     Platform detection is done only in the main project file, settings hints for the GLES headers/libraries detection in the corresponding 'Find' cmake modules.
* Simplified the additions of directories for includes/libraries, based on the same hints added during detection.

Notes:

* GLESv2 is the default for GLES-enabled systems.

* For the Raspberry Pi systems, both the legacy (BRCM) and the new (MESA) GLES libraries can be present.
 The selection can be done via the `USE_MESA_GLES` CMake option (default: Off)
 By default, the legacy (BRCM) libraries/headers are used, without any special configuration.
 For the Pi4, the GL renderer/system must be explicitely selected
 ** select the OpenGL 2 renderer with `-DGL=On`
 ** select the GLESv2 renderer with `-DUSE_MESA_GLES=On`

* the GLESv1 renderer can still be forcibly enabled using the `FORCE_GLESv1` build option, for platforms where GLESv1 is the only option.

Minor - set the start-up project in MS Visual Studio to 'emulationstation'.
2020-06-11 04:28:59 +01:00
Conn O'Griofa
d6adf6b71e CMake: use correct Raspberry Pi library names & fix generic GLES support
* For BCMHOST build, use brcmEGL / brcmGLESv2 libraries, and don't look at
  Mesa includes (so libraspberrypi-dev and libgles*-mesa-dev can coexist).
* If overridden via -DGLES=On, don't present vendor includes to build to
  make absolutely sure that the Mesa includes are used.

Fixes stretch vendor library building & generic Mesa GLES compatibility.
2017-10-06 03:03:12 +00:00
Bim Overbohm
1d9cee83a5 Improve CMake file and FindOpenGLES script
CMake should now add proper library files and paths to the build files.
FindOpenGLES.cmake should now hopefully find GLES on Raspberry Pi.
2013-05-16 12:04:02 +02:00
Bim Overbohm
eb4bafcb2f Use CMake to generate EmulationStation build files
CMake is much more versatile, providing build support on multiple
platforms to generate Makefiles. This should serve as a starting point
for CMake builds.
Please note the /CMake/* scripts are actually ripped from the ORGE3D
repositories, but they seem to be in the Public Domain. Thanks!
2013-05-14 21:40:21 +02:00