1 # Android 2 message("*** Using Android") 3 set(DEQP_TARGET_NAME "Android") 4 set(DEQP_SUPPORT_GLES1 ON) 5 set(DEQP_SUPPORT_GLES2 ON) 6 7 if (DE_ANDROID_API GREATER 8) 8 set(DEQP_SUPPORT_EGL ON) 9 set(DEQP_SUPPORT_GLES3 ON) # \note GLES3 support requires eglGetProcAddress() 10 else () 11 set(DEQP_SUPPORT_EGL OFF) 12 endif () 13 14 set(DEQP_SUPPORT_OPENCL OFF) 15 16 # GLESv2 lib 17 find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib) 18 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY}) 19 20 # GLESv1 lib 21 find_library(GLES1_LIBRARY GLESv1_CM PATHS /usr/lib) 22 set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARY}) 23 24 # EGL lib 25 if (DEQP_SUPPORT_EGL) 26 find_library(EGL_LIBRARY EGL PATHS /usr/lib) 27 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY}) 28 endif () 29 30 # OpenCL - dynamic loading 31 if (DEQP_SUPPORT_OPENCL) 32 include_directories(framework/opencl/inc) 33 34 add_subdirectory(wrappers/opencl_dynamic) 35 set(DEQP_OPENCL_LIBRARIES OpenCL) 36 endif () 37 38 # Platform libs 39 find_library(LOG_LIBRARY NAMES log PATHS /usr/lib) 40 set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${LOG_LIBRARY}) 41 42 if (DE_ANDROID_API GREATER 8) 43 # libandroid for NativeActivity APIs 44 find_library(ANDROID_LIBRARY NAMES android PATHS /usr/lib) 45 set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${ANDROID_LIBRARY}) 46 endif () 47 48 # Android uses customized execserver 49 include_directories(execserver) 50 set(DEQP_PLATFORM_LIBRARIES xscore ${DEQP_PLATFORM_LIBRARIES}) 51