build: Support building libretro core for Android

This commit is contained in:
Connor McLaughlin
2020-07-07 20:27:06 +10:00
parent c242d4707f
commit 01287cb7da
4 changed files with 10 additions and 4 deletions

View File

@ -75,8 +75,10 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version
#elif defined(__APPLE__)
context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try);
#elif defined(ANDROID)
#ifdef USE_EGL
context = ContextEGLAndroid::Create(wi, versions_to_try, num_versions_to_try);
#else
#endif
#elif defined(USE_X11)
if (wi.type == WindowInfo::Type::X11)
{
#ifdef USE_EGL