projectM-visualizer / projectm

projectM - Cross-platform Music Visualization Library. Open-source and Milkdrop-compatible.
https://discord.gg/mMrxAqaa3W
GNU Lesser General Public License v2.1
3.22k stars 364 forks source link

Fixed CMake FindOpenGL script for GLES, fixed a few things and added a build check for Android #728

Closed kblaschke closed 9 months ago

kblaschke commented 9 months ago

The findOpenGL script still tried to find/require desktop GL libraries when requesting any GLES implementation. We now only search for GLES if it's requested, as mixing both really makes no sense.

Also added a check for Android in CMAKE_SYSTEM_NAME, forcibly enabling GLES3 if this is found. To not break Android builds in the future, I've also added an Actions build check which builds libprojectM via the NDK for Android, arm64-v8a and API level 33. The resulting artifacts should then be useable by any Android dev targeting the same API level.