1 message("*** Using nullws target")
2 set(DEQP_TARGET_NAME "nullws")
4 add_definitions(-DNULLWS)
6 find_library(GLES2_LIBRARY NAMES libGLESv2 GLESv2)
7 find_library(GLES3_LIBRARY NAMES libGLESv3 GLESv3)
8 find_library(EGL_LIBRARY NAMES libEGL EGL)
10 if (NOT GLES3_LIBRARY)
11 find_library(GLES3_LIBRARY NAMES libGLESv2 GLESv2)
14 find_path(GLES2_INCLUDE_PATH GLES2/gl2.h)
15 find_path(GLES3_INCLUDE_PATH GLES3/gl3.h)
16 find_path(GLES31_INCLUDE_PATH GLES3/gl31.h)
17 find_path(GLES32_INCLUDE_PATH GLES3/gl32.h)
18 find_path(EGL_INCLUDE_PATH EGL/egl.h)
20 if (GLES2_LIBRARY AND GLES2_INCLUDE_PATH)
21 set(DEQP_SUPPORT_GLES2 ON)
22 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
23 include_directories(BEFORE ${GLES2_INCLUDE_PATH})
26 if (GLES3_LIBRARY AND GLES3_INCLUDE_PATH)
27 set(DEQP_SUPPORT_GLES3 ON)
28 set(DEQP_GLES3_LIBRARIES ${GLES3_LIBRARY})
29 include_directories(BEFORE ${GLES3_INCLUDE_PATH})
32 if (GLES3_LIBRARY AND GLES31_INCLUDE_PATH)
33 set(DEQP_SUPPORT_GLES31 ON)
34 set(DEQP_GLES31_LIBRARIES ${GLES3_LIBRARY})
35 include_directories(${GLES31_INCLUDE_PATH})
38 if (GLES3_LIBRARY AND GLES32_INCLUDE_PATH)
39 set(DEQP_SUPPORT_GLES32 ON)
40 set(DEQP_GLES32_LIBRARIES ${GLES3_LIBRARY})
41 include_directories(${GLES32_INCLUDE_PATH})
44 if (EGL_LIBRARY AND EGL_INCLUDE_PATH)
45 set(DEQP_SUPPORT_EGL ON)
46 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
47 include_directories(BEFORE ${EGL_INCLUDE_PATH})
50 set(TCUTIL_PLATFORM_SRCS
51 nullws/tcuNullWSPlatform.cpp
52 nullws/tcuNullWSPlatform.hpp