• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Android
2message("*** Using Android")
3set(DEQP_TARGET_NAME	"Android")
4set(DEQP_SUPPORT_GLES1	ON)
5set(DEQP_SUPPORT_GLES2	ON)
6set(DEQP_SUPPORT_GLES3	ON)
7set(DEQP_SUPPORT_EGL	ON)
8
9# GLESv2 lib
10find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib)
11set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
12
13# GLESv1 lib
14find_library(GLES1_LIBRARY GLESv1_CM PATHS /usr/lib)
15set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARY})
16
17# EGL lib
18if (DEQP_SUPPORT_EGL)
19	find_library(EGL_LIBRARY EGL PATHS /usr/lib)
20	set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
21endif ()
22
23# Platform libs
24find_library(LOG_LIBRARY NAMES log PATHS /usr/lib)
25set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${LOG_LIBRARY})
26
27if (DE_ANDROID_API GREATER 8)
28	# libandroid for NativeActivity APIs
29	find_library(ANDROID_LIBRARY NAMES android PATHS /usr/lib)
30	set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${ANDROID_LIBRARY})
31endif ()
32
33# Android uses customized execserver
34include_directories(execserver)
35set(DEQP_PLATFORM_LIBRARIES xscore ${DEQP_PLATFORM_LIBRARIES})
36