Merge "Add triangle edge guardband for Tex2D lookup diff" am: da231f19ab
[platform/upstream/VK-GL-CTS.git] / targets / nullws / nullws.cmake
1 message("*** Using nullws target")
2 set(DEQP_TARGET_NAME "nullws")
3
4 add_definitions(-DNULLWS)
5
6 find_library(GLES2_LIBRARY              NAMES libGLESv2 GLESv2)
7 find_library(GLES3_LIBRARY              NAMES libGLESv3 GLESv3)
8 find_library(EGL_LIBRARY                NAMES libEGL EGL)
9
10 if (NOT GLES3_LIBRARY)
11         find_library(GLES3_LIBRARY      NAMES libGLESv2 GLESv2)
12 endif()
13
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)
19
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})
24 endif ()
25
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})
30 endif ()
31
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})
36 endif ()
37
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})
42 endif ()
43
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})
48 endif ()
49
50 set(TCUTIL_PLATFORM_SRCS
51         nullws/tcuNullWSPlatform.cpp
52         nullws/tcuNullWSPlatform.hpp
53 )