35 lines
1,008 B
CMake
35 lines
1,008 B
CMake
# Android
|
|
message("*** Using Android")
|
|
set(DEQP_TARGET_NAME "Android")
|
|
set(DEQP_SUPPORT_GLES1 ON)
|
|
set(DEQP_SUPPORT_GLES2 ON)
|
|
set(DEQP_SUPPORT_GLES3 ON)
|
|
set(DEQP_SUPPORT_EGL ON)
|
|
|
|
# GLESv2 lib
|
|
find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib)
|
|
set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
|
|
|
|
# GLESv1 lib
|
|
find_library(GLES1_LIBRARY GLESv1_CM PATHS /usr/lib)
|
|
set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARY})
|
|
|
|
# EGL lib
|
|
if (DEQP_SUPPORT_EGL)
|
|
find_library(EGL_LIBRARY EGL PATHS /usr/lib)
|
|
set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
|
|
endif ()
|
|
|
|
# Platform libs
|
|
find_library(LOG_LIBRARY NAMES log PATHS /usr/lib)
|
|
set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${LOG_LIBRARY})
|
|
|
|
if (DE_ANDROID_API GREATER 8)
|
|
# libandroid for NativeActivity APIs
|
|
find_library(ANDROID_LIBRARY NAMES android PATHS /usr/lib)
|
|
set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${ANDROID_LIBRARY})
|
|
endif ()
|
|
|
|
# Android uses customized execserver
|
|
include_directories(execserver)
|
|
set(DEQP_PLATFORM_LIBRARIES xscore ${DEQP_PLATFORM_LIBRARIES})
|