Android's latest NDK includes support for EGL 1.5 functions.
However, only for API level 29. But due to unified headers
folks building for older API levels will also see the new
functions but won't be able to link. Making the egl functions
dynamic avoids build time issues.
Change-Id: I718e28c7422faf3c7b964ca70b86a1711a08ae54
Affects: EGL
Bug: 1873
(cherry picked from commit
9af8b5c1ad98342a634b79a1f9c1213632248c64)
if (IS_DIRECTORY ${ANGLE_LIBS})
find_library(EGL_LIBRARY NAMES EGL_angle PATHS ${ANGLE_LIBS} NO_DEFAULT_PATH)
else()
- find_library(EGL_LIBRARY EGL PATHS /usr/lib)
+ # Disable static linking by clearing EGL_LIBRARY
+ set(EGL_LIBRARY )
endif()
set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})