1 message("*** Using Surfaceless target")
3 set(DEQP_TARGET_NAME "Surfaceless")
7 set(DEQP_USE_SURFACELESS ON)
9 set(DEQP_SUPPORT_GLES2 ON)
10 set(DEQP_SUPPORT_GLES3 ON)
11 set(DEQP_SUPPORT_EGL ON)
13 find_library(GLES2_LIBRARIES GLESv2)
14 find_library(GLES3_LIBRARIES GLESv3)
15 find_path(GLES2_INCLUDE_PATH GLES2/gl2.h)
16 find_path(GLES3_INCLUDE_PATH GLES3/gl3.h)
18 if (GLES2_INCLUDE_PATH AND GLES2_LIBRARIES)
19 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARIES})
21 message (SEND_ERROR "GLESv2 support not found")
24 if (GLES3_INCLUDE_PATH AND GLES3_LIBRARIES)
25 set(DEQP_GLES3_LIBRARIES ${GLES3_LIBRARIES})
26 elseif (GLES3_INCLUDE_PATH AND GLES2_LIBRARIES)
27 # Assume GLESv2 provides ES3 symbols if gl3.h was found
28 # and the GLESv3 library was not.
29 set(DEQP_GLES3_LIBRARIES ${GLES2_LIBRARIES})
31 message (FATAL_ERROR "GLESv3 support not found")
34 pkg_check_modules(EGL REQUIRED egl)
35 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARIES})
37 pkg_check_modules(GBM REQUIRED gbm)
38 pkg_check_modules(KMS REQUIRED libkms)
39 pkg_check_modules(DRM REQUIRED libdrm)
41 include_directories(${GLES2_INCLUDE_PATH} ${GLES3_INCLUDE_PATH}
42 ${EGL_INCLUDE_DIRS} ${GBM_INCLUDE_DIRS}
43 ${KMS_INCLUDE_DIRS} ${DRM_INCLUDE_DIRS})
45 set(DEQP_PLATFORM_LIBRARIES ${DEQP_GLES2_LIBRARIES} ${DEQP_GLES3_LIBRARIES}
46 ${DEQP_EGL_LIBRARIES} ${GBM_LIBRARIES}
47 ${KMS_LIBRARIES} ${DRM_LIBRARIES})